# Ajax `Ajax` is a droplab plugin that allows for retrieving and rendering list data from a server. ## Usage Add the `Ajax` object to the plugins array of a `DropLab.prototype.init` or `DropLab.prototype.addHook` call. `Ajax` requires 2 config values, the `endpoint` and `method`. * `endpoint` should be a URL to the request endpoint. * `method` should be `setData` or `addData`. * `setData` completely replaces the dropdown with the response data. * `addData` appends the response data to the current dropdown list. ```html Toggle