reactive-table icon indicating copy to clipboard operation
reactive-table copied to clipboard

does reactive-table has Row Expander functionality ?

Open sharathbangera6 opened this issue 9 years ago • 3 comments

Hi,

Wanted to know if reactive-table provides row-expander functionality ? any idea on how to implement the same if it doesn't provide ?

sharathbangera6 avatar Feb 10 '16 09:02 sharathbangera6

No, sorry. And unfortunately I don't think you could implement it without modifying the package.

aslagle avatar Feb 11 '16 02:02 aslagle

@sharathbangera6 you could consider doing it this way: https://github.com/aslagle/reactive-table/pull/296 until there is an officially supported option. I know that the gentleman that wrote it is planning on eventually writing it as a tmpl as @aslagle suggested, but it's an option for now (I'm using it). You'd just have to be careful when updating the core reactive-table package.

datanotion avatar Mar 03 '16 22:03 datanotion

I've added a new pull request: #403

You can try out the code here: https://github.com/ClarenceL/reactive-table/tree/feature-child-tmpl

It's pretty simple, on the column you want the expand button, for the fields item, add the setting expandButton: true

Then add to the root settings object children: { tmpl: Template."your template name" }

See the added readme CHILD_TABLE_README.md for more details

ClarenceL avatar Jun 19 '16 23:06 ClarenceL