getEditor

returns an editor object

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

Example

// 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"});

Details

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
some.getEditor().setValue(new_value);
 
//set focus
some.getEditor().focus();
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 lightweight js framework and page of javascript tree grid product.