Open dalekube opened 4 years ago
Issue has been resolved when I render the data tree piece of code in renderUI() function :
showModal(
session=session,
modalDialog(
size="l",
easyClose=T,
# Display the tree
renderUI({
collapsibleTreeOutput("tree")
})
)
)
Thanks, @ImSanjayChintha. This is a suitable, temporary fix.
An instance of
collapsibleTreeSummary()
becomes distorted as it's rendered more than once in the samemodelDialog()
within a Shiny app. The tree is compressed after the modal and tree are rendered more than once, making it difficult to comprehend.For example, this code displays a horizontal tree, representing an artificial company's headcount by division.
1st time being rendered
Subsequent times being rendered