From 26e5d5bd0727a0a977167a1841351f8c225948d1 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Tue, 19 Oct 2021 14:56:26 +0200 Subject: [PATCH] Update new public methods to Property --- src/style_manager/model/Property.js | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/style_manager/model/Property.js b/src/style_manager/model/Property.js index f2c4e19aa..9394fd2ed 100644 --- a/src/style_manager/model/Property.js +++ b/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}