Skip to content

Commit 106b4e8

Browse files
Sushant Kumarkevinchappell
authored andcommitted
feat: Added ability to mark control as hidden
1 parent a521730 commit 106b4e8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/js/components/controls/control.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default class Control {
1010
constructor({ events = {}, dependencies = {}, ...restConfig } = {}) {
1111
this.events = events
1212
this.controlData = restConfig
13+
this.controlData.attrs = Object.assign({}, this.controlData.attrs, {hidden: false});
1314
this.depsLoaded = this.fetchDependencies(dependencies)
1415
}
1516

src/js/components/controls/html/hr.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ class HRControl extends Control {
1414
icon: 'divider',
1515
id: 'divider',
1616
},
17+
attrs: {
18+
className: '',
19+
}
1720
}
1821
super(hrConfig)
1922
}

0 commit comments

Comments
 (0)