setCellEditor

creates an editor in a cell

void setCellEditor(number rowId,number columnId,object editorObject, [string page] );
rowId
numberthe row id columnId
numberthe column id editorObject
objectan object with editor type and options (for richselect) pagestringoptional, the name of the sheet

Example

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

Related samples

Details

The editorObject parameter can have the following properties:

You can pass null as the editorObject parameter. In this case the editor will be removed from the cell.

See also
  • API
  • Articles
  • 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.
    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.