Skip to content

多选、JSON渲染、分组功能,在 searchable = false 时,下拉数据不显示 #8

Description

@wjl0814

var jsonArray = [
{
"id": 1, // value值
"disabled": false, // 是否禁选
"groupName": "分组名",
"groupId": 3,//分组ID
"selected": false, // 是否选中
"name": "Betty Deborah Jackson" // 名称
},
{
"id": 2,
"disabled": false,
"groupName": "分组名",
"groupId": 2,
"selected": false,
"name": "Jason Barbara Clark"
}
]
$('#dropdown-mul').dropdown({
data: jsonArray,
multipleMode: 'label',
searchable: false,
choice: function () {
console.log(arguments, this);
}
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions