setCellEditor - text editor

I am trying to use a specialized text editor for spreadsheet cells. I have tried:

sheet.setCellEditor(row,column,{editor: "text", options:[{value:"test"}]}); sheet.setCellEditor(row,column,{editor: "text", options:{value:"test"}}); sheet.setCellEditor(row,column,{editor: "text", value:"test"});

None of the above work. The below works fine, but is not what I need:

sheet.setCellEditor(row,column,{ editor:"richselect", options:["One", "Two", "Three"]});

Tagged:

Comments

  • edited August 14

    The Spreadsheet 's setCellEditor() method is designed for defining dropdown editors for this or that cell. If you need to pass some value to a standard text editor, you should use API of the inner Datatable: 

    //open cell, if needed
    $$("ssheet").$$("cells").editCell(3, 3);
    //set editor value
    $$("ssheet").$$("cells").getEditor().setValue(123456789);

    Please, check the following snippet https://webix.com/snippet/92379329

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion