Closed ArmindoMaurits closed 8 years ago
Hi ArmindoMaurits ,were you able to make it work ?
I did not add this code to the library iteself yet, my current project is on hold. Will try later in some weeks to merge this to a fork of the project for @rvera . The above code works if you just use the parts which I describe (JS, CSS and HTML) in your own code, no need to add anything to the library.
I think this is a good idea.
I'm wary of adding a lot of functionality into a lightweight plugin but if you make a small PR I'm all in for merging it.
Will close this one for now, feel free to reopen if you make a PR.
I would like to suggest a new feature to the library. It is working great so far.
For my own project I wanted the group titles to be able to be clicked, which then selects/deselects all of the thumbnails from that group. I've already created the method as generic as possible, but was unable to just add it to your JS-file. I am using this in my $( document ).ready(), so you might have to make minor adjustments to make it work from within the library itself.
I would suggest making a new option:
label_selectable: false
Could you merge these to the main branch @rvera ?
HTML: I've added a data-attribute to all optgroup objects
data-selected='false'
CSS:
.group_title { text-decoration: underline; color: blue; cursor: pointer; }
JS: