inline-checkbox

a customizable checkbox editor

string inline-checkbox;

Example

//for a datatable column
{ id:"ch1", header:"", template:custom_checkbox, width:40, editor:"inline-checkbox"}

Related samples

Details

If you want to display a checkbox icon within the item you'd like to edit, you should inlcude {common.checkbox()} into the data item.

At the same time, there can be eny template for data edited with the help of a checkbox editor. Checkboxes will appear only on the editing stage for you to check/uncheck it:

function custom_checkbox(obj, common, value){
    if (value)
        return "<div class='webix_table_checkbox checked'> YES </div>";
    else
        return "<div class='webix_table_checkbox notchecked'> NO </div>";
}
See also
  • Articles
  • Back to top