Browse Source

Update new public methods to Property

pull/3901/head
Artur Arseniev 5 years ago
parent
commit
26e5d5bd07
  1. 32
      src/style_manager/model/Property.js

32
src/style_manager/model/Property.js

@ -16,6 +16,38 @@ export default class Property extends Model {
init() {}
/**
* Get property id.
* @returns {String}
*/
getId() {
return this.get('id');
}
/**
* Get property type.
* @returns {String}
*/
getType() {
return this.get('type');
}
/**
* Get property name (usually is the CSS property name).
* @returns {String}
*/
getName() {
return this.get('property');
}
/**
* Get property label.
* @returns {String}
*/
getLabel() {
return this.get('name');
}
/**
* Clear the value
* @return {this}

Loading…
Cancel
Save