I'm trying to build a Shiny App for visualizing some tabular data.
So, my first approach is to get some code example (similar to what I intend) from the community, Fully Understand it and then create/adapt to my specific needs.
Regarding the code example I have found a very close match (in a fantastic blog by Stéphane Lauren). To get the fully running example please refer to Child tables.
Here are some example of questions where I'm stuck... (please refer to the full code above).
- In the following code lines (34, 38)
tableis the object shine server send to Ui (right?). The methods (this is the right terminology?)
table()where can I find their man? (I know they are pretty much self-explanatory... but, usually details are killers...)
"var expandColumn = table.column(0).data() === 'plus-sign' ? 0 : 1;", "var tbl = table.table().node();",
- The render function (line 174) is called from the
datatableoptions (as a
columnDefsproperty), but I don't know how and where the arguments are defined and passed to the function... In DT documentation (4.4 Column Rendering another example is presented, but with no other explanation regarding function "prototype". Is there a place where I can find this information?
I suppose that if you can point me to a place where these points are documented I can actually understand the remaining code.
Any general explanation is also welcome .
Thank you very much for your patience and answers.