forked from jquery/jquery-ui
-
Notifications
You must be signed in to change notification settings - Fork 141
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
Showing first two lines in the button label when address formatting #345
Comments
Which Selectmenu widget do you want to address? The official one or the old, legacy one within this repo? |
Make that the official jQ one - thanks to izaa!! |
Implement options like this
and create your own widget like this
|
You rock! Thanks! :D |
NM :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How can I get the first two lines (name and address1) of the address to appear in the button label but while maintaining the address multiline format in the menu?
ui-selectmenu-item-header is obviously used for the button label, but I cant figure out how to get the first two lines in there w/o loosing the newline for the address.
I'd like it to look like this:
Button:
[ John Doe - 123 Main Street, Suite 100 ]
Menu:
| John Doe
| 123 Main Street, Suite 100
| Somewhere, US 12345
| (footer text)
But so far, I can only manage this (by matching on the first | instead of -):
Button:
[ John Doe - 123 Main Street, Suite 100 ]
Menu:
| John Doe - 123 Main Street, Suite 100
| Somewhere, US 12345
| (footer text)
Or, the normal:
Button:
[ John Doe ]
Menu:
| John Doe
| 123 Main Street, Suite 100
| Somewhere, US 12345
| (footer text)
John Doe could have multiple addresses, and only showing the name in the button doesn't provide enough feedback for what was/is selected
Thanks!
The text was updated successfully, but these errors were encountered: