When the option `checkable` enabled, the checkable mode will be effective. In checkable mode, the checkbox shows the selected status before the option item in the drop-down menu. Clicking on the option will toggle the selected state and will not close the drop-down menu.
<example>
<selectid="pickerCheckable"name="pickerCheckable"data-placeholder="Select some fruits"class="form-control"multipledata-checkable="true">
To facilitate migration from [Chosen](#javascript/chosen), the picker component provides the Chosen compatibility mode. Once the Chosen compatibility mode is enabled, you can use the Chosen initialization method, options, and events without introducing Chosen JS and CSS resources.
...
...
@@ -715,7 +749,7 @@ You can use an object as the initialization option in initialize method or set o
<p>Allows the following:</p>
<ul>
<li>`'bottom'`: below the control;</li>
<li>`'bottom'`: above the control;</li>
<li>`'top'`: above the control;</li>
<li>`'auto'`: automatically;</li>
<li>`function`: Dynamically returned to the direction of each pop-up through a function, the function needs to return `'top'` or `'bottom'`;</li>
</ul>
...
...
@@ -823,7 +857,7 @@ var myPicker = $('#myPicker').data('zui.picker');
myPicker.setValue();
```
## `updateOptionList(optionList, reset)`
### `updateOptionList(optionList, reset)`
Update options list, the parameter `optionList` is the new options array, the method will clear all existing options if the parameter `reset` is `true`.