icon

draws the '+'/'-' (state) icons for collapsed/expanded states of nodes

string icon(object obj,object common);
objobjectthe data item object
commonobjectthe collection of predefined template functions
stringthe HTML string

Example

webix.ui({
    view:"tree",
    template:"{common.icon()} {common.folder()} #value#"
});

Related samples

Details

If a tree features no template, state icon (common.icon()) and folder icons (common.folder()) are drawn for it.

If you set only a state icon for a tree, folder icons won't be drawn.

See also
Back to top