input; add glass effect when editable is false

This commit is contained in:
jean-emmanuel 2018-02-02 21:44:43 +01:00
parent a80a559eb1
commit 7c94eb2887
3 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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) {

View file

@ -15,6 +15,9 @@
margin-top: -1px
}
}
.not-editable {
@extend .glass-effect;
}
}
.widget {
.input {