-
Notifications
You must be signed in to change notification settings - Fork 247
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
Support replacing angle brackets in SelectView
popup button
#794
Conversation
Hi, and thanks for the work! For buttons, the user can entirely replicate the brackets from the Here though, what ends up being displayed is a combination of the selected entry (which can change, and should not include brackets directly) and the "decorators" (currently hard-coded to be angled brackets). I would be fine adding an option to replace the angled brackets with user-defined decorators (potentially an empty string). I guess it would take store a |
7d55b82
to
596e4d7
Compare
SelectView
popup buttonSelectView
popup button
Good point, updated! |
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.
Looks good, thanks!
Just a few comments (mostly len vs width). Also since you get the sum of the decorators width, it may make sense to have a method to get it easily.
596e4d7
to
08198d1
Compare
Updated, added a helper method to compute the total decorator width, and fixed coordinate calculation for the popup. |
Allow a SelectView to be configured with custom decorators instead of the angle brackets around the current item label. Fix up calculation of the available width for the item label.
08198d1
to
76d736b
Compare
Done! |
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.
Thanks for bearing with me!
No problem, thanks for the reviews! |
Allow a
SelectView
to be configured with custom decorators instead of the angle brackets around the current item label.