input; add glass effect when editable is false
This commit is contained in:
parent
7313090987
commit
a5931b6464
3 changed files with 6 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
- widgets
|
||||
- switch: wrap non-array `values` property in an array
|
||||
- dropdown: wrap non-array `values` property in an array; allow setting value by its key/index; add `sendKey` option;
|
||||
- input: add glass effect when `editable` is `false`
|
||||
|
||||
## 0.23.1
|
||||
|
||||
|
|
|
|||
|
|
@ -72,6 +72,8 @@ module.exports = class Input extends _canvas_base {
|
|||
if (e.keyCode==13) this.blur()
|
||||
if (e.keyCode==27) this.blur(false)
|
||||
})
|
||||
} else {
|
||||
this.widget.classList.add('not-editable')
|
||||
}
|
||||
|
||||
if (this.getProp('widgetId').length) {
|
||||
|
|
|
|||
|
|
@ -15,6 +15,9 @@
|
|||
margin-top: -1px
|
||||
}
|
||||
}
|
||||
.not-editable {
|
||||
@extend .glass-effect;
|
||||
}
|
||||
}
|
||||
.widget {
|
||||
.input {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue