file widget: save icon when mode == save; center icon when hidePath == true
This commit is contained in:
parent
4af4fe93e3
commit
6e8a787b36
3 changed files with 16 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ module.exports = class File extends Widget {
|
|||
|
||||
if (this.getProp('align') === 'left') this.widget.classList.add('left')
|
||||
if (this.getProp('align') === 'right') this.widget.classList.add('right')
|
||||
if (this.getProp('mode') === 'save') this.widget.classList.add('save')
|
||||
if (this.getProp('hidePath')) this.widget.classList.add('hide-path')
|
||||
|
||||
this.text = DOM.get(this.widget, '.text')[0]
|
||||
this.widget.addEventListener('fast-click', (e)=>{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue