Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P4786
popup and dropdown
Active
Public
Actions
Authored by
•
Prtksxna
on Jan 24 2017, 9:57 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F5343796: popup and dropdown
Jan 24 2017, 9:57 AM
2017-01-24 09:57:43 (UTC+0)
Subscribers
None
diff --git a/demos/pages/widgets.js b/demos/pages/widgets.js
index cb65cb7..adaa649 100644
--- a/demos/pages/widgets.js
+++ b/demos/pages/widgets.js
@@ -1845,6 +1845,40 @@ OO.ui.Demo.static.pages.widgets = function ( demo ) {
}
),
new OO.ui.FieldLayout(
+ new OO.ui.DropdownWidget( {
+ label: 'Select one',
+ menu: {
+ items: [
+ new OO.ui.MenuOptionWidget( {
+ data: 'a',
+ label: 'First'
+ } ),
+ new OO.ui.MenuOptionWidget( {
+ data: 'b',
+ label: 'Second',
+ indicator: 'alert'
+ } ),
+ new OO.ui.MenuOptionWidget( {
+ data: 'c',
+ label: 'Third'
+ } ),
+ new OO.ui.MenuOptionWidget( {
+ data: 'c',
+ label: 'The fourth option has a long label'
+ } ),
+ new OO.ui.MenuOptionWidget( {
+ data: 'd',
+ label: 'Fifth'
+ } )
+ ]
+ }
+ } ),
+ {
+ label: 'DropdownWidget',
+ align: 'top'
+ }
+ ),
+ new OO.ui.FieldLayout(
new OO.ui.PopupButtonWidget( {
icon: 'info',
framed: false,
Event Timeline
•
Prtksxna
created this paste.
Jan 24 2017, 9:57 AM
2017-01-24 09:57:43 (UTC+0)
•
Prtksxna
mentioned this in
T155992: DropdownWidget overlaps popup
.
Jan 24 2017, 10:00 AM
2017-01-24 10:00:11 (UTC+0)
Log In to Comment