jquery - Bootstrap multi select grouping dynamicaly using array -


Is there a way to dynamically add a multichannel using this framework

  var data = [[label:" ACNP ", value:" ACNP "}, {label:" test ", value:" test "}]; $ ("# Multiselect") Multiselect ("data provider", data);  

Yes, now you can add a group with dataprovider See the documentation on

.

You can type in:

  var data = [{title: ' The first group, children: [[label: 'cheese', value: 'paneer'}, {label: 'tomates', value: 'tomatoes'}]}, {title: 'second group', children: [[label : 'Mozzarella', Value: 'Mozierla'}, {label: 'mushroom', value: 'mushroom'}]}]; $ ('Multiselect'). Multiselect ('datapriver', data);  
  & lt; Select class = "multiselect" multi = "multiple" & gt; & Lt; / Select & gt;  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -