Add ability to see Zigbee information for a device (#5445)

* add ability to see zigbee information for a device

* cleanup

* handle resize correctly

* cleanup

* convert to ha-dialog

* Simplify

* Add close button

* Add readonly to code editor

* add class

* eslint fixes

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
David F. Mulcahey
2020-04-15 09:36:48 -04:00
committed by GitHub
parent 1b9f224569
commit 8383caf6a6
6 changed files with 128 additions and 3 deletions

View File

@@ -20,7 +20,9 @@ export class HaCodeEditor extends UpdatingElement {
@property() public mode?: string;
@property() public autofocus = false;
@property({ type: Boolean }) public autofocus = false;
@property({ type: Boolean }) public readOnly = false;
@property() public rtl = false;
@@ -128,6 +130,7 @@ export class HaCodeEditor extends UpdatingElement {
mode: this.mode,
autofocus: this.autofocus !== false,
viewportMargin: Infinity,
readOnly: this.readOnly,
extraKeys: {
Tab: "indentMore",
"Shift-Tab": "indentLess",