getUnits of ui.unitlist, Methods Webix Docs

returns unit values

array getUnits();

arrayan array of unit values arranged in the alphabetical order

Example

var units = $$('list').getUnits(); // ->[1, C, M, T]

Related samples

Details

The method returns the units set by the uniteBy property:

uniteBy:function(obj){
    return obj.title.substr(0,1); //first letters of item titles
}

See also

Back to top

Join Our Forum

We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.