Added read only ability to chip list and chip.

This commit is contained in:
2020-12-13 16:30:37 -08:00
parent addb22dc76
commit 07b74e39b7
2 changed files with 30 additions and 9 deletions

View File

@@ -10,7 +10,8 @@ class Chip extends IgniteElement {
return {
onDelete: () => { },
background: null,
color: null
color: null,
readOnly: false
}
}
@@ -48,6 +49,7 @@ class Chip extends IgniteElement {
.style("line-height", "1")
.style("border", "none")
.onClick(() => this.onDelete())
.hide(this.readOnly)
);
}
}