Skip to content

Commit

Permalink
add setitem demo
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Oct 9, 2023
1 parent 0309530 commit e60e36c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@
let inst = Tags.getInstance(el);
inst.resetState();
});
document.querySelector(".toggle-setitem").addEventListener("click", function (ev) {
const el = document.getElementById("validationTagsClear");
let inst = Tags.getInstance(el);
inst.setItem(9);
});

document.querySelector("#toggle_orange_disabled").addEventListener("click", (ev) => {
const el = document.getElementById("showDisabled");
Expand Down Expand Up @@ -541,6 +546,7 @@ <h1>Demo</h1>
</div>
<div class="col-md-4">
<button type="button" class="toggle-disable2">Enable/disable</button>
<button type="button" class="toggle-setitem">Set item</button>
</div>
</div>
<div class="row mb-3 g-3">
Expand Down

0 comments on commit e60e36c

Please sign in to comment.