I'm trying to implement a shinyTree that has a default selected value. Does anybody know if that is possibly?
I couldn't find anything in the documentation or the examples that came with the package .
Thanks for all the help.
Set the 'stselected' attribute of your desired nodes to TRUE
Example:
output$tree <- renderTree({
sss=list('Nodes' = list('Node1' = '1', 'Node2' = '2'))
attr(sss[[1]][['Node1']],"stselected")=TRUE # <---
attr(sss[[1]],"stopened")=TRUE
sss
})
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.