Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Aug 6, 2024
1 parent d792841 commit 6bf074c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,18 @@ <h1>Demo</h1>
</select>
</div>
</div>
<div class="row mb-3 g-3">
<div class="col-md-4">
<label for="liveInitialValueHtml" class="form-label">Tags (live server side + initial value from html)</label>
<select class="form-select" id="liveInitialValue" name="tags_live_initial[]" multiple data-allow-new="true"
data-server="demo.json" data-live-server="1"
data-server-params='{"key":"val"}'>
<option disabled hidden value="">Choose a tag...</option>
<option value="some" selected="selected">some</option>
<option value="value" selected="selected">value</option>
</select>
</div>
</div>
<div class="row mb-3 g-3">
<div class="col-md-4">
<label for="emptyTags" class="form-label">Tags (empty + hide drop icon is done automatically)</label>
Expand Down
1 change: 1 addition & 0 deletions tags.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Bootstrap 5 (and 4!) tags
* https://github.com/lekoala/bootstrap5-tags
* @license MIT
*/

Expand Down

0 comments on commit 6bf074c

Please sign in to comment.