Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

selectmenu inconsistency #7195

Closed
mdgross opened this issue Feb 28, 2014 · 4 comments
Closed

selectmenu inconsistency #7195

mdgross opened this issue Feb 28, 2014 · 4 comments
Assignees
Milestone

Comments

@mdgross
Copy link

mdgross commented Feb 28, 2014

A selectmenu with data-native-menu="false" uses a popup to display smaller menus. The data-overlay-theme property specifies the theme of the selectmenu popup itself. However, when using an actual popup the data-overlay-theme property specifies the theme of the background. Additionally, there is no way to specify the background theme of the selectmenu popup.

Example: http://jsfiddle.net/3nUG7/embedded/result/

@gabrielschulhof
Copy link

@mdgross

#6975 2: The Revenge Of The Popup

The popup created by the selectmenu gets an ID that's derived from the selectmenu's own ID and has the following pattern: <selectmenuId>-listbox.

Thus, you can hook up like this: $( "#<selectmenuId>-listbox" ).on( "popupafteropen", function() { /* ... */ });

@gabrielschulhof
Copy link

@mdgross
Copy link
Author

mdgross commented Feb 28, 2014

@gabrielschulhof

Thank you for this. Could you please provide a similar example which demonstrates how to set the background (overlay) to theme "b" on the selectmenu popup? I would like the result to be similar for both examples I have provided.

@gabrielschulhof
Copy link

@mdgross In http://jsbin.com/IFolanOW/312 it waits for the selectmenu to be created, and then it sets the popup's overlayTheme option to "b".

gabrielschulhof pushed a commit that referenced this issue Mar 12, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants