File tree Expand file tree Collapse file tree 1 file changed +4
-56
lines changed
Expand file tree Collapse file tree 1 file changed +4
-56
lines changed Original file line number Diff line number Diff line change 168168 } )
169169 }
170170
171- // -------------------------------
172- // Loading Buttons
173- // -------------------------------
174- // 'Loading Buttons components' example in docs only
175- const myLoadingButton = document . querySelectorAll ( '.docs-example .btn-loading' )
176- if ( myLoadingButton ) {
177- myLoadingButton . forEach ( button => {
178- new coreui . LoadingButton ( button )
179- button . addEventListener ( 'click' , event => {
180- const myBtn = coreui . LoadingButton . getInstance ( event . target )
181- myBtn . start ( )
182- } )
183- } )
184- }
185-
186171 // -------------------------------
187172 // Multi Selects
188173 // -------------------------------
189174 // 'Multi Selects components' example in docs only
175+ // js-docs-start multi-select-array-data
190176 const myMultiSelect = document . getElementById ( 'multiSelect' )
191177
192178 if ( myMultiSelect ) {
193- const cuiMultiSelect = new coreui . MultiSelect ( myMultiSelect , {
179+ // eslint-disable-next-line no-unused-vars
180+ const toastCoreUI = new coreui . MultiSelect ( myMultiSelect , {
194181 name : 'multiSelect' ,
195182 options : [
196183 {
232219 ] ,
233220 search : true
234221 } )
235- cuiMultiSelect . update ( {
236- options : [
237- {
238- value : 0 ,
239- text : 'Angular2'
240- } ,
241- {
242- value : 1 ,
243- text : 'Bootstrap2' ,
244- selected : true
245- } ,
246- {
247- value : 2 ,
248- text : 'React.js' ,
249- selected : true
250- } ,
251- {
252- value : 3 ,
253- text : 'Vue.js'
254- } ,
255- {
256- label : 'backend' ,
257- options : [
258- {
259- value : 4 ,
260- text : 'Django'
261- } ,
262- {
263- value : 5 ,
264- text : 'Laravel'
265- } ,
266- {
267- value : 6 ,
268- text : 'Node.js' ,
269- selected : true
270- }
271- ]
272- }
273- ]
274- } )
222+ // js-docs-end multi-select-array-data
275223 }
276224
277225 // -------------------------------
You can’t perform that action at this time.
0 commit comments