setCellEditor

добавляет в ячейку редактор

void setCellEditor(number rowId,number columnId,object editorObject);
rowIdnumberid ряда
columnIdnumberid колонки
editorObjectobjectобъект с названием типа редактора и опциями (для редактора richselect)

Example

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

Related samples

Details

У параметра editorObject могут быть следующие свойства:

  • editor - (string) тип редактора (ss_richselect или excel_date)
  • options - (string,array) ссылки на диапазон ячеек или массив опций из редактора
  • empty - (boolean) указывает, добавлять ли пустую опцию

editorObject может быть null, и тогда редактор будет удален из ячейки.

See also
Наверх
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.