Add the ability to select images with the ArtBrowser
This commit is contained in:
parent
e1606ac2f3
commit
0381df035e
4 changed files with 104 additions and 7 deletions
|
|
@ -1,11 +1,23 @@
|
|||
<li class="image grid">
|
||||
<li
|
||||
class="image grid"
|
||||
data-image-id="{{image.id}}"
|
||||
>
|
||||
<img
|
||||
src="{{tb-filePath image.path}}"
|
||||
alt=""
|
||||
>
|
||||
{{#if (eq selectMode "single")}}
|
||||
<button>Select</button>
|
||||
<button
|
||||
data-action="select"
|
||||
>
|
||||
Select
|
||||
</button>
|
||||
{{else if (eq selectMode "multi")}}
|
||||
<input type="checkbox">
|
||||
<button
|
||||
data-action="select"
|
||||
aria-pressed="{{image.selected}}"
|
||||
>
|
||||
Select (Multi)
|
||||
</button>
|
||||
{{/if}}
|
||||
</li>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue