selectmenu inconsistency #7195

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

Comments

Projects
None yet
2 participants
@mdgross

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

This comment has been minimized.

Show comment
Hide comment
@gabrielschulhof

gabrielschulhof Feb 28, 2014

Contributor

@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() { /* ... */ });

Contributor

gabrielschulhof commented Feb 28, 2014

@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

This comment has been minimized.

Show comment
Hide comment
@mdgross

This comment has been minimized.

Show comment
Hide comment
@mdgross

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

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

This comment has been minimized.

Show comment
Hide comment
@gabrielschulhof

gabrielschulhof Mar 1, 2014

Contributor

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

Contributor

gabrielschulhof commented Mar 1, 2014

@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 added a commit that referenced this issue Mar 12, 2014

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