flexx
flexx copied to clipboard
Does it support TableWidget or GridWidget?
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.
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>.
Thanks. For the NavBar, I looked into TabLayout and tried to align the title in one column on left side, but failed.
#553 implements a GridWidget
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 ?)
That sounds good! I am planning for a release this week. With a bit of luck we can get that in as well :)
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.
Hello, will there be a TableWidget?
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.