diff --git a/src/style_manager/index.js b/src/style_manager/index.js index 469e608e2..70006c83a 100644 --- a/src/style_manager/index.js +++ b/src/style_manager/index.js @@ -220,6 +220,20 @@ module.exports = () => { }, + /** + * Remove a property from the sector + * @param {string} sectorId Sector id + * @param {string} name CSS property name, eg. 'min-height' + * @return {Property} Removed property + * @example + * const property = styleManager.removeProperty('mySector', 'min-height'); + */ + removeProperty(sectorId, name) { + const props = this.getProperties(sectorId); + return props && props.remove(this.getProperty(sectorId, name)); + }, + + /** * Get properties of the sector * @param {string} sectorId Sector id