strips: continue refactoring, add spacing option
This commit is contained in:
parent
a60710e246
commit
1304ce2586
9 changed files with 318 additions and 144 deletions
|
|
@ -22,6 +22,7 @@ module.exports = class Strip extends Panel {
|
|||
|
||||
horizontal:false,
|
||||
stretch:false,
|
||||
spacing:0,
|
||||
|
||||
_children:'children',
|
||||
|
||||
|
|
@ -38,6 +39,8 @@ module.exports = class Strip extends Panel {
|
|||
|
||||
super(options)
|
||||
|
||||
this.widget[0].style.setProperty('--spacing', this.getProp('spacing'))
|
||||
|
||||
this.container.addClass(this.getProp('horizontal') ? 'horizontal' : 'vertical')
|
||||
this.container.addClass(this.getProp('stretch') ? 'stretch' : '')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue