setCellEditor

creates an editor in a cell

void setCellEditor(number rowId,number columnId,object editorObject);

Parameters

rowIdnumberthe row id
columnIdnumberthe column id
editorObjectobjectan object with editor type and options (in case of richselect type)

Example

$$("ss1").setCellEditor(8,1,{ editor:"richselect", options:["One", "Two", "Three"]});
// or
$$("ss1").setCellEditor(8,2,{ editor:"richselect", options:"B3:B7" });

Related samples

Details

The editorObject parameter can have the following properties:

  • editor - (string) the editor type (richselect, popup, date, text)
  • options - (string,array) a range of cell references or an array of editor options
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix popular javascript framework and page of javascript spreadshee product.