$dual_selectbootstrapDualListbox nonSelectedListLabel 可选密钥模板 selectedListLabel 已选密钥模板 preserveSelectionOnMove moved moveOnSelect false 出现一个剪头表示可以
This code snippet is using the jQuery library to initialize a dual select box with the Bootstrap Dual Listbox plugin.
The $('.dual_select') selector selects the HTML element with the dual_select class.
The bootstrapDualListbox() function is called on this element to initialize the dual select box with the provided options:
nonSelectedListLabelspecifies the label for the non-selected list.selectedListLabelspecifies the label for the selected list.preserveSelectionOnMovespecifies whether to preserve the selection when an item is moved. The value 'moved' means that the selection will be preserved when an item is moved.moveOnSelectspecifies whether to move the selected item immediately after it is selected. If set tofalse, an arrow will be displayed to indicate that only one item can be selected at a time.filterTextClearspecifies the text for the clear filter button.moveSelectedLabelspecifies the label for the move selected button.moveAllLabelspecifies the label for the move all button.removeSelectedLabelspecifies the label for the remove selected button.removeAllLabelspecifies the label for the remove all button.infoTextspecifies the text format for the information about the number of items.showFilterInputsspecifies whether to display filter inputs for searching.selectorMinimalHeightspecifies the minimum height of the selector boxes.
The result is a dual select box with the specified labels, buttons, and options
原文地址: http://www.cveoy.top/t/topic/i0pO 著作权归作者所有。请勿转载和采集!