You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,26 @@ Then just activate the plugin on a normal select box(suggest having a blank opti
27
27
});
28
28
</script>
29
29
30
+
### Options
31
+
32
+
When activating the plugin, you may include an object containing options for the combobox
33
+
34
+
$('.combobox').combobox({bsVersion: '2'});
35
+
36
+
`menu`: Custom markup for the dropdown menu list element.
37
+
38
+
`item`: Custom markup for the dropdown menu list items.
39
+
40
+
`matcher`: Custom function with one `item` argument that compares the item to the input. Defaults to matching on the query being a substring of the item, case insenstive
41
+
42
+
`sorter`: Custom function that sorts a list `items` for display in the dropdown
43
+
44
+
`highlighter`: Custom function for highlighting an `item`. Defaults to bolding the query within a matched item
45
+
46
+
`template`: Custom function that returns markup for the combobox.
47
+
48
+
`bsVersion`: Version of bootstrap being used. This is used by the default `template` function to generate markup correctly. Defaults to '3'. Set to '2' for compatibility with Bootstrap 2
0 commit comments