]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
ComboGrid: add trigger to delete from ComboGrid
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 24 Jul 2019 07:21:12 +0000 (09:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Aug 2019 13:37:26 +0000 (15:37 +0200)
commit94953ba8ea46b353ee72629ea5bb3c3df3c450ea
tree0e7905fa1d1c7e6bd8abd4f7529d411189a2bcf7
parent28de30b20e96ec9a579082435c1b17d281fd6c79
ComboGrid: add trigger to delete from ComboGrid

when we have a combogrid that may be empty, we now show a
little 'x' where the user can delete the content

this is not shown when the field is not allowed to be empty

we add a new css for this because triggers need a background image
with a very specific layout:

110x22px which is 5 icons in one image for the various states
(normal, hover, active, focused, focused hover)

the icon is taken from the theme-crisp
form/tag-field-item-close.png but rearranged to fit the size

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
css/Makefile
css/ext6-pmx.css [new file with mode: 0644]
form/ComboGrid.js
images/Makefile
images/pmx-clear-trigger.png [new file with mode: 0644]