Skip to content

getEditor

returns an editor object

function getEditor(
// the record id
id?: string
): WebixEditorObject

WebixEditorObject an object with the editor state and info

var editor = view.getEditor(row_id);

If the id is not provided, the method returns info about the last opened editor.

{
node: html_node_of_editor,
value: initial_value_of_editor,
config: configuration_of_editor
}

You can access all methods of editor through this object

//get value
var value = some.getEditor().getValue();
//set value
some.getEditor().setValue( new_value );
//set focus
some.getEditor().focus();

Articles

API