flexx icon indicating copy to clipboard operation
flexx copied to clipboard

Does it support TableWidget or GridWidget?

Open coolsnake opened this issue 6 years ago • 8 comments

Table Widget or Grid Widget can show data in web site application. They can dynamically increase rows.

I also want some thing like Navbar Widget. There are some entries in the nav bar. If We click the one entry, the corresponding content will display in TableWidget or GridWidget in the right area.

coolsnake avatar Dec 09 '18 14:12 coolsnake

No, Flexx does not (yet) have widgets for laying things out in a grid. There is the FormLayout which covers some use-cases. A widget to display data in a table should not be too hard to make using <table>.

almarklein avatar Dec 10 '18 10:12 almarklein

Thanks. For the NavBar, I looked into TabLayout and tried to align the title in one column on left side, but failed.

coolsnake avatar Dec 10 '18 11:12 coolsnake

#553 implements a GridWidget

almarklein avatar Apr 09 '19 10:04 almarklein

I'm implementing a TableWidget for my own usage, while making it generic. I'm trying to provide an API as elegant as other widgets provided by Flexx with support for optional header and optional caption.

I will post a PR when done.

P.S. : Table entries sorting/filtering might be implemented using JavaScript. It's convenient for little data as displaying/filtering big data might require a model object linked to the widget (maybe using a sort of DataWidget ?)

damienflament avatar Apr 09 '19 11:04 damienflament

That sounds good! I am planning for a release this week. With a bit of luck we can get that in as well :)

almarklein avatar Apr 09 '19 11:04 almarklein

This is awesome.

@damienflament did you encounter bokeh's DataTable? It uses a ColumnDataSource for a "backend".

I believe the mechanics might be somewhat similar to those of flexx - bokeh uses pscript as well.

h5rdly avatar Apr 10 '19 16:04 h5rdly

Hello, will there be a TableWidget?

Kazakoff64 avatar Apr 17 '21 08:04 Kazakoff64

There could be. There has been some work in #554, but that implementation uses subwidgets for the cells. A widget capable of dealing with a lot of rows should not use sub-widgets, but directly use <table>. So far no-one has tried to implement that yet.

almarklein avatar Apr 19 '21 08:04 almarklein