-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested Datatable Within Another Datatable #619
Comments
@yihui Any guidance would be most welcome and helpful. Thank you. |
Did you figure out how to do multiple nested tables and present it in shiny? I've posted before but no one seems to know how to do multiple nested tables through shiny whereby one can keep on drilling down how many a times and then finally arrive at there desired last output instead of only being able to drill down once and having to stick all the rest of information in a one liner as per your example above. Example below : Base row.) Balance sheet 100000 And have these sort of drill downs for however much you want. I'm assuming this is also your question. At the moment there only seems to examples that show 1 drill down and all the other data as been compressed together. I was hoping @yihui or @shrektan have possibly figured this out since a similar question last year and might be able to give us some guidance.... This would be hugely appreciated! 😊 this is the issue i had posted a few months ago: also wondering if @tomasreigl might be able to offer their help as well. thanks in advance |
Hi @piyuw. Unfortunately, no I did not figure this out and did not get a response. I had to table the idea since I couldn't figure it out myself. |
Hi @cymonegates, it's a shame indeed that we both didn't get any responses, I was hoping someone in the community might know. I wonder if DT does not have this functionality. but if thats the case, happy to be corrected but doesnt that mean JS doesn't have that functionality? Which definitely can't be the case because I've seen such drill downs on Web pages. 🤔 Tabling this sort of thing i feel takes the essence out of what needs to be portrayed, but I guess we both don't have a choice in All the best |
It would be awesome to be able to make that with
|
FYI my implementation is better presented on my blog. |
Hey @stla , is there any chance you could convert your implementation into a native |
In this DT example with child rows, do you know how to start the table with all the child rows expanded? |
There is also a rudimentary implementation in another package, here is an example:
|
|
I'd like to accomplish something similar to the example shown here: http://live.datatables.net/pokogare/1/edit with a child datatable nested in a parent datatable but do not know if it is possible using the DT version in RStudio.
With the code below I have created a child row for parent using callback = JS that shows the text output of my d[4] data but what I want is to transform the data found in d[4] into a new datatable nested under the parent row. I have seen the issues posted here: rstudio/shiny-examples#9 and here: #393 (comment) but they do not address what I'm trying to do.
Here's an example of what my output currently looks like.
The number represents a code and what follows after the dash represents the value. I'd like the nested datatable to have a column for the code and column for the value like:
Code Value
2526 Cancel Order
2529 Complete Order
.... and so forth
`
The text was updated successfully, but these errors were encountered: