@@ -162,7 +162,7 @@ The Multiselect methods are the following:
162
162
- [ loadOptions()] ( #loadoptions )
163
163
- [ setCurrentPage()] ( #setcurrentpage )
164
164
165
- ### ` appendOptions(options) `
165
+ ### ` appendOptions `
166
166
167
167
The method appends multi-select items to the multi-select.
168
168
@@ -172,7 +172,7 @@ Code example:
172
172
$ (' #multiselect' ).multiselect2 (' appendOptions' , [{" value" : " 1" , " label" : " Label #1" }, {" value" : " 2" , " label" : " Label #2" }]);
173
173
```
174
174
175
- ### ` clearMultiselectOptions() `
175
+ ### ` clearMultiselectOptions `
176
176
177
177
The method removes all multi-select items.
178
178
@@ -182,15 +182,15 @@ Code example:
182
182
$ (' #multiselect' ).multiselect2 (' clearMultiselectOptions' );
183
183
```
184
184
185
- ### ` getCurrentPage() `
185
+ ### ` getCurrentPage `
186
186
187
187
The method returns the number of the current page.
188
188
189
189
``` javascript
190
190
$ (' #multiselect' ).multiselect2 (' getCurrentPage' );
191
191
```
192
192
193
- ### ` getSearchCriteria() `
193
+ ### ` getSearchCriteria `
194
194
195
195
The method returns the trimmed value of the search input.
196
196
@@ -200,7 +200,7 @@ Code example:
200
200
$ (' #multiselect' ).multiselect2 (' getSearchCriteria' );
201
201
```
202
202
203
- ### ` isOptionsLoaded(options) `
203
+ ### ` isOptionsLoaded `
204
204
205
205
The method checks if all multi-select items are already loaded.
206
206
@@ -210,7 +210,7 @@ $('#multiselect').multiselect2('isOptionsLoaded', [{"value": "2", "label": "Labe
210
210
211
211
This method returns ` true ` if multiple selection items are loaded, and it returns ` false ` if they are not loaded.
212
212
213
- ### ` loadOptions() `
213
+ ### ` loadOptions `
214
214
215
215
The method loads the next page with multi-select items from [ nextPageUrl] ( #nextpageurl ) according to the [ search criteria] ( #getsearchcriteria ) .
216
216
The multi-select items from the Ajax response are appended to the multi-select.
@@ -221,7 +221,7 @@ Code example:
221
221
$ (' #multiselect' ).multiselect2 (' loadOptions' );
222
222
```
223
223
224
- ### ` setCurrentPage(page) `
224
+ ### ` setCurrentPage `
225
225
226
226
The method configures the current page number.
227
227
0 commit comments