Closed R-II closed 9 years ago
Hi Kris,
I have added a support for selection. I have added a few properties and methods to make external apps able to handle a selection made in nanoGallery.
I still have to work on ergonomy problems, especially on touch devices, and making more obvious the ability to select.
New methods
Initialization :
$("#yourElement").nanoGallery({...});
Set an option :
$("#yourElement").nanoGallery("option",option_name,new_value);
Get an option :
$("#yourElement").nanoGallery("option",option_name);
Get an item :
$("#yourElement").nanoGallery("getItem",item_index);
Get every items :
$("#yourElement").nanoGallery("getItems");
Get the indexes of some items :
$("#yourElement").nanoGallery("getItemsIndex",[item1, item2, item3, ...]);
Select some items :
$("#yourElement").nanoGallery("selectItems",[item1, item2, item3, ...]);
Unselect some items :
$("#yourElement").nanoGallery("unselectItems",[item1, item2, item3, ...]);
List selected items :
$("#yourElement").nanoGallery("getSelectedItems");
New properties
itemsSelectable (bool) : define if the gallery supports selection
itemsSelectable
fnThumbnailSelection (function) : called any time an item is selected or unselected
fnThumbnailSelection
Do not hesitate to tell me if you find anything wrong.
Raph
Hi Raph,
Very nice feature. Many thanks!
Hi Raph, I'm working on some code redesign. Before pushing any new contribution, please use the latest source version. Thanks!
Hi Kris,
I have added a support for selection. I have added a few properties and methods to make external apps able to handle a selection made in nanoGallery.
I still have to work on ergonomy problems, especially on touch devices, and making more obvious the ability to select.
New methods
Initialization :
Set an option :
Get an option :
Get an item :
Get every items :
Get the indexes of some items :
Select some items :
Unselect some items :
List selected items :
New properties
itemsSelectable
(bool) : define if the gallery supports selectionfnThumbnailSelection
(function) : called any time an item is selected or unselectedDo not hesitate to tell me if you find anything wrong.
Raph