isEditable

Checks if the active component is editable.

var instance = this.app.component.get();
var is = instance.isEditable(); 

isType

Checks the type of active component.

var instance = this.app.component.get();
var is = instance.isType('text'); 

getData

Returns properties of active component.

var instance = this.app.component.get();
var data = instance.getData(); 

getElement

Returns the Dom element of active component.

var instance = this.app.component.get();
var $el = instance.getElement(); 

getSource

Returns the template source element of active component.

var instance = this.app.component.get();
var $source = instance.getSource(); 

getType

Returns the type of active component.

var instance = this.app.component.get();
var type = instance.getType(); 

setData

Sets the data object as properties of active component.

var data = {
    color: '#fff',
    margin: '20px'
};
var instance = this.app.component.get();
instance.setData(data);