Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does it support TableWidget or GridWidget? #538

Open
coolsnake opened this issue Dec 9, 2018 · 8 comments
Open

Does it support TableWidget or GridWidget? #538

coolsnake opened this issue Dec 9, 2018 · 8 comments

Comments

@coolsnake
Copy link

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.

@almarklein
Copy link
Member

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>.

@coolsnake
Copy link
Author

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

@almarklein
Copy link
Member

#553 implements a GridWidget

@damienflament
Copy link

damienflament commented Apr 9, 2019

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 ?)

@almarklein
Copy link
Member

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

@h5rdly
Copy link

h5rdly commented Apr 10, 2019

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.

@Kazakoff64
Copy link

Kazakoff64 commented Apr 17, 2021

Hello, will there be a TableWidget?

@almarklein
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants