folder

draws an icon of the folder

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

Example

webix.ui({
    view:"tree",
    template:"{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 folder icon for a tree, state icons won't be drawn.

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.