Improve the multi-select behaviour/appearance and display how many selections are made/required
This commit is contained in:
parent
0381df035e
commit
812583f33c
7 changed files with 75 additions and 20 deletions
|
|
@ -6,18 +6,20 @@
|
|||
src="{{tb-filePath image.path}}"
|
||||
alt=""
|
||||
>
|
||||
{{#if (eq selectMode "single")}}
|
||||
{{#if is.single}}
|
||||
<button
|
||||
data-action="select"
|
||||
>
|
||||
Select
|
||||
</button>
|
||||
{{else if (eq selectMode "multi")}}
|
||||
<button
|
||||
{{else if is.multi}}
|
||||
<input
|
||||
type="checkbox"
|
||||
aria-label="Select image"
|
||||
data-action="select"
|
||||
aria-pressed="{{image.selected}}"
|
||||
{{checked image.selected}}
|
||||
>
|
||||
Select (Multi)
|
||||
</button>
|
||||
{{/if}}
|
||||
</li>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue