Added read only ability to chip list and chip.
This commit is contained in:
4
chip.js
4
chip.js
@@ -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)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user