DataTable needs some love.

Feedback

I'm currently working on a project that makes heavy use of DataTables to display data, and I've noticed... well, DataTables really lack of a lot of features.
For this reason, I'd like to go through the current state of DataTables and make a couple suggestions to give them some justice.

Dynamic Column Generation

As of right now you can generate a dynamic number of columns, but there's no way to populate the column headers with dynamic data, forcing the user to manually create different tables, with different columns, for different schemas.

It would be really helpful if we had a "Column Header" property that lets you set single header values dynamically. Kinda like how you do with the dropdown widget, when adding options to the dropdown.

Dynamic Selectable Property

I was left pretty astonished when I saw there's no possibility to make the DataTable selectable dynamically. Like, what if I want a button to activate/deactivate the "selectable mode"? I can't!

I had to create a copy for each table I have on the App, and then make it visible/invisible with a boolean property, or use the conditional builder.

More paginated features

I mean yeah... cool, we have a built in pagination feature... but it's not customizable at all.
Why can I only choose the number of rows in the multiples of 5? Why can't I change the appearance of the elements? What If I just wanted the "next/previous page" buttons to appear, but don't want the user to handle the number of rows per page?

Row Selection is just bad

If you select one or more rows, and then delete them from the AppState that is populating the DataTable, the rows don't get deselected. and there's no way to do it, if not by coding a full custom widget.
Nothing more to say, if not that this is bad and makes row selection useful only in the use-case shown in the docs.

3
2 replies