folder

draws an icon of the folder

string folder(object obj,object common);

Parameters

objobjectthe data item object
commonobjectthe collection of predefined template functions

Returns

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