Difference between revisions of "Demo homepage"
From evidyaloka
Line 6: | Line 6: | ||
<htmltag tagname="script" type="text/javascript"> | <htmltag tagname="script" type="text/javascript"> | ||
<nowiki> | <nowiki> | ||
− | var | + | var comboBox = new OO.ui.ComboBoxWidget( { |
− | label: ' | + | label: 'ComboBoxWidget', |
− | + | ||
menu: { | menu: { | ||
items: [ | items: [ | ||
new OO.ui.MenuOptionWidget( { | new OO.ui.MenuOptionWidget( { | ||
− | data: ' | + | data: 'Option 1', |
− | label: ' | + | label: 'Option One' |
} ), | } ), | ||
− | new OO.ui.MenuOptionWidget( { | + | new OO.ui.MenuOptionWidget( { |
− | data: ' | + | data: 'Option 2', |
− | label: ' | + | label: 'Option Two' |
− | + | ||
} ), | } ), | ||
new OO.ui.MenuOptionWidget( { | new OO.ui.MenuOptionWidget( { | ||
− | data: ' | + | data: 'Option 3', |
− | label: ' | + | label: 'Option Three' |
} ), | } ), | ||
− | new OO.ui.MenuOptionWidget( { | + | new OO.ui.MenuOptionWidget( { |
− | data: ' | + | data: 'Option 4', |
− | label: ' | + | label: 'Option Four' |
} ), | } ), | ||
new OO.ui.MenuOptionWidget( { | new OO.ui.MenuOptionWidget( { | ||
− | data: ' | + | data: 'Option 5', |
− | label: ' | + | label: 'Option Five' |
} ) | } ) | ||
] | ] | ||
} | } | ||
− | } ) | + | } ); |
+ | $( document.body ).append( comboBox.$element ); | ||
</nowiki> | </nowiki> |
Revision as of 04:12, 22 December 2022
Evidyaloka Welcomes you!!