The multiple item chooser allows the user to choose multiple items at the same time. It lists all the available items in a paginated table and uses a CheckBox to show the selected/unselected state for each. The chooser also has an AutoComplete input field that can narrow down the list by searching the items. A reset button is provided to restore the pre-selected items when constructing the chooser.
@deprecated
| oscar. | The multiple item chooser allows the user to choose multiple items at the same time. |
| Constants | |
| EVENT_TYPES {Array(String)} supported events. | |
| Constructor | |
| oscar. | |
| Functions | |
| setCheckAllImage Sets the CSS (Class) on the ‘Select All’ | Image Checkbox. |
| isAllCheckboxesSelected | Verifies that all the checkboxes are selected so that we can set the ‘CheckAll’ checkbox to a partial selection. |
| getItemsSelections Gets the selected Items. | |
| setItemsSelections | sets the items selections, could be used to clear the selections if you pass in null. |
| destroy Destroys the DataTable and clears the innerHTML of the | container. |
| enableResetButton Enables the reset button, changes the style. | |
| Constants | |
| CLASS_NAME - oscar. |
| Parameters: container | The tag id that the multiItemChooserTable will be |
| attached to. preSelectedItemsIn | The items that will be selected by |
| default. DataSourceIn | The data source the SRSs come from. |
| dataTableConfig | The datatable’s configuration parameters. columnDefs - |
| The column definition configuration. requestParameterIn | The request |
| parameter used in the getItems method. options | {Object} An optional object whose properties will be set on this instance. |
Verifies that all the checkboxes are selected so that we can set the ‘CheckAll’ checkbox to a partial selection.
isAllCheckboxesSelected : function()
sets the items selections, could be used to clear the selections if you pass in null.
setItemsSelections : function( selections )