--- stage: none group: unassigned info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments --- # InputSetter plugin `InputSetter` is a DropLab plugin that allows for updating DOM out of the scope of DropLab when a list item is clicked. ## Usage Add the `InputSetter` object to the plugins array of a `DropLab.prototype.init` or `DropLab.prototype.addHook` call. - `InputSetter`: Requires a configuration value for `input` and `valueAttribute`. - `input`: The DOM element that you want to manipulate. - `valueAttribute`: A string that's the name of an attribute on your list items that's used to get the value to update the `input` element with. You can also set the `InputSetter` configuration to an array of objects, which allows you to update multiple elements. ```html