Skip to content

Commit

Permalink
feat: Added ability to mark control as hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
Sushant Kumar authored and kevinchappell committed Feb 23, 2020
1 parent a521730 commit 106b4e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/js/components/controls/control.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export default class Control {
constructor({ events = {}, dependencies = {}, ...restConfig } = {}) {
this.events = events
this.controlData = restConfig
this.controlData.attrs = Object.assign({}, this.controlData.attrs, {hidden: false});
this.depsLoaded = this.fetchDependencies(dependencies)
}

Expand Down
3 changes: 3 additions & 0 deletions src/js/components/controls/html/hr.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ class HRControl extends Control {
icon: 'divider',
id: 'divider',
},
attrs: {
className: '',
}
}
super(hrConfig)
}
Expand Down

0 comments on commit 106b4e8

Please sign in to comment.