Copy link to clipboard
Copied
Using Adobe InDesign I'm trying to create a hierarchy list like the treeview but having it contain check boxes(in Javascript). Is this even possible with out using a plugin? If not is their a way to track treeview options so that if the user clicks the item in the treeview it has it's checked status changed to true? giving the same effect as a checkbox? Something like the image i've pasted in.
Copy link to clipboard
Copied
With InDesign's tools that's not really possible. You'd probably have to look into CEP, and i'm not even sure you can do it using that framework.
Copy link to clipboard
Copied
Is it possible to have an onclick event listener for a treeview listitem so that when a user selects an item I could change the checked value to true? Giving the same effect as a checkbox essentially.
Copy link to clipboard
Copied
I won't say it's not possible with ScriptUI but the amount of code required would probably discourage the bravest.
CEP certainly would allow this with some custom development too. Still would require a certain amount of code but with possibly more substainability regarding to updates.
Copy link to clipboard
Copied
With HTML CEP it would be pretty simple stuff.
You can check out these GitHub - patosai/tree-multiselect.js: jQuery multiple select with nested options
30+ jQuery Multiselect Plugin & Widget with Examples
SUI you would have to make your own widgets which with each app version get less and less reliable.
Basically you could use PNGs for you triangles tree expanders and dynamically add checkboxes that are indented according to their level.
I actually think it would be quite simple but I don't have the time now to place a demo.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now