Added 'optgroups' option property in 'selectize'.

This commit is contained in:
Daniel Rosenwasser
2015-08-27 00:20:30 -07:00
parent 2309ef1c42
commit 7071c76027

View File

@@ -183,6 +183,13 @@ declare module Selectize {
*/
valueField?: string;
/**
* Option groups that options will be bucketed into.
* If your element is a <select> with <optgroup>s this property gets populated automatically.
* Make sure each object in the array has a property named whatever "optgroupValueField" is set to.
*/
optgroups?: U[];
/**
* The name of the option group property that serves as its unique identifier.
*