You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thanks for developing this wrapper for jsTree, it's very useful.
In my app, I'm trying to show a tree where any item in the tree can be checked, and separately, an item in the tree can be selected to open it up and reveal its contents. As a result, I have these options set:
@chrismiddleton Thanks for identifying this issue. I think you are part of the way there with the fix.
First a question about this line:
if (el.dataset.stCheckbox == "TRUE" && el.dataset.stTieSelection == "FALSE") {
Does this need to be conditional? What happens if the callbacks are always called?
Second, if tie_selection is false, stchecked should be set when an item is selected.
Could you address these points?
You may want to update example 04 with separate checked and selected sections and explain how the app should act when tie_selection is True or False (and maybe include the whole_node option).
First, thanks for developing this wrapper for jsTree, it's very useful.
In my app, I'm trying to show a tree where any item in the tree can be checked, and separately, an item in the tree can be selected to open it up and reveal its contents. As a result, I have these options set:
However, when checking an item, the get_checked method still returns an empty list(). I believe this is due to this line here: https://github.com/shinyTree/shinyTree/blob/master/R/init.R#L91
where it has
But this will only update the stchecked attr if item is selected, not checked. I would think it should read:
I can submit a PR if this looks correct to you.
The text was updated successfully, but these errors were encountered: