returns an editor object

object getEditor( [string|number|object row,string|number column] );
rowstring|number|objectthe row id
columnstring|numberthe column id
objectan object with the editor state and info


// return the last opened editor
var editor = view.getEditor();
// return a specific editor 
var editor = view.getEditor(3, "year");
// or
var editor = view.getEditor({row:3, column:"year"});


Editor object

    column:       column id,
    config:       editor configuration object,
    focus:        the method that sets focus for an editor,
    getInputNode: the method that returns the input node of an editor,
    getValue:     the method that returns the editor value,
    node:         the HTML node of the editor,
    render:       the method that renders the editor,
    setValue:     the method that sets value for an editor,
    value:        the current editor value

You can access all the methods of an editor through this object.

//get value
var value = some.getEditor().getValue();
//set value
//set focus
See also
Back to top
If you have not checked yet, be sure to visit site of our main product Webix lightweight js framework and page of javascript tree grid product.