template

defines a custom template that will be applied to the component

function template;

Example

webix.ui({
    container:"box",
    view:"colorboard",
    cols    :7,
    rows    :4,
    width   :600,
    height  :370,
    template:"<div class=\"value_cell\">" +
            "<div>{obj.val}</div>" +
            "<div class=\"color_block\" style=\"background:{obj.val};\"></div>" +
            "</div>"
});

Related samples

See also
Back to top