Hi @Insality !
First of all, thank you and congratulations for this great extension! (that I started to use… yesterday )
I struggled a little bit at first, but now that I understand the general principles, I see how it can/will be super useful.
I have a few noobish questions though:
1/ How to retrieve/build list information?
In order to manipulate the list, I created a data table to manage the “logics” part, directly in the “create” function:
Is this the correct method or does Druid provide some hmmm… “tools/functions” to easily get these information?
(just to make sure I didn’t reinvent the wheel but worse)
Note that this method seems to work fine, except for my second point.
2/ Is there a callback when deleting a node?
I’m struggling keeping my data table and the “physical” list synchronized because I don’t know when a node is deleted (when it moves outside the container).
Is there a way to know when a node is deleted? (so I can update my data table always know the state of the list)
3/ How to insert space between the elements of my list?
[SOLVED - ANSWERED RIGHT BELOW BY RAMA]
Currently, the elements of my list are “touching” each others.
In the “new_static_grid” function, there is a parameter for the nb of columns but nothing to manage the space between elements.
Possible workaround: my elements (ex: button) could contain the space, but in this case, this space would be clickable (as a part of the element). Is possible, I’d rather have the space not clickable.
=> is there a smarter method/workaround to do it?
4/ [BUG] Uncorrect repositioning of the list when not enough elements in the list
(at least fewer rows than what the container can contain - it works fine otherwise)
Is this a known issue or should I report it on github?
As a workaround, would you recommend to create “empty” (invisible/not clickable) elements to fill the holes? (so the system won’t know there are not enough rows)