-
Notifications
You must be signed in to change notification settings - Fork 15
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
docs: More specs for ui.table functionality #198
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I think anything that is a setting should be a prop to ui.table, not method. Especially things that exist on other components as props. Like density would be prop on list for example.
- display_X would be show_X in spectrum, we should be consistent.
- Probably should just have a bunch of on_* events, not add_listener
What defines a setting vs not a setting? |
@dsmmcken any further thoughts on props vs functions? |
What do you mean by that? My opinion is:
|
What I have in mind is cases like Allowing props in that way could make some things trickier. Because we have the immutable fluent interface for some methods, we would need to do it in a way that would mesh nicely. Otherwise making slightly different versions of tables could be more complicated than it would need to be. So what I personally would be on board with is making the |
Decision is single variable functions should be props instead |
I've moved every single argument method as well as others that decomposed easily (specifically Honestly, I think all of the methods could be refactored into props. Others like |
Looking good. I know My proposal. Remove Something like:
Not sure what exactly to call it. Permissions? features? disable? |
I think that's a good idea
maybe with enums so it more closely resembles other access control |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No further comments.
Here are how my initial attempts line up with the requests:
Display names (#105):
column_display_names
event listener (Fixes #180):
add_event_listener
requests from #77:
Show/hide quick filter by default:
display_quick_filters
density:
density
Ability to hide column headers:
display_column_headers
Ability for the server to specify rows to select:
selected
Allow multi/single selection: added
multi_select
arg toselection_mode
Allow row selection to be visible with checkboxes (vs just styled as highlighted, etc):
selection_style
Allow columns to be kept hidden, even though they are subscribed (and so in the payload to be sent to the server on events): I believe this is already spec'd as
always_fetch_columns