MediaWiki:Sidebar: Difference between revisions
DMLiveWiki (talk | contribs) No edit summary |
No edit summary |
||
Line 56: | Line 56: | ||
* TOOLBOX | * TOOLBOX | ||
* LANGUAGES | * LANGUAGES | ||
// Example: Creating a ButtonSelectWidget that contains ButtonOptionWidgets | |||
// Note that when rendered, ButtonOptionWidgets might look like ButtonWidgets, | |||
// but the two are different. | |||
// Although optional, data is almost always specified (e.g., 1, 2, and | |||
// 3 in this example). | |||
var option1 = new OO.ui.ButtonOptionWidget( { | |||
data: 1, | |||
label: 'Option 1', | |||
title: 'Button option 1' | |||
} ), | |||
option2 = new OO.ui.ButtonOptionWidget( { | |||
data: 2, | |||
label: 'Option 2', | |||
title: 'Button option 2' | |||
} ), | |||
option3 = new OO.ui.ButtonOptionWidget( { | |||
data: 3, | |||
label: 'Option 3', | |||
title: 'Button option 3' | |||
} ), | |||
// Create a new ButtonSelectWidget and add the button options to it | |||
// via the ButtonSelectWidget's 'items' config option. | |||
buttonSelect = new OO.ui.ButtonSelectWidget( { | |||
items: [ option1, option2, option3 ] | |||
} ); | |||
// Append the ButtonSelectWidget to the DOM. | |||
$( document.body ).append( buttonSelect.$element ); |
Revision as of 18:13, 20 June 2019
- navigation
- mainpage|mainpage-description
- https://forum.dmlive.wiki%7CDiscussion forum
- https://www.facebook.com/DMLiveWiki%7CLike DMLiveWiki on Facebook
- https://twitter.com/DMLiveWiki%7CFollow @DMLiveWiki on Twitter
- Contact us|Contact us
- recentchanges-url|recentchanges
- randompage-url|randompage
- Guides & contributing
- Category:Guides|Converting and burning files
- Contributing|Contributing recordings, tickets, set lists
- Recordings
- Category:Soundboard recordings|Soundboard recordings
- Category:FM broadcasts|FM broadcasts
- Category:Audience recordings|Audience recordings
- Category:Videos|Videos
- Demos & Studio Outtakes|Demos & Studio Outtakes
- Category:Tour backing tapes|Tour backing tapes
- Tours
- Category:1980 Tour|1980 Tour
- Category:1981 Tour|1981 Tour
- Category:1982 See You Tour|1982 "See You" Tour
- Category:1982-1983 A Broken Frame Tour|1982-1983 "A Broken Frame" Tour
- Category:1983-1984 Construction Time Again Tour|1983-1984 "Construction Time Again" Tour
- Category:1984-1985 Some Great Reward Tour|1984-1985 "Some Great Reward" Tour
- Category:1986 Black Celebration Tour|1986 "Black Celebration" Tour
- Category:1987-1988 Music For The Masses Tour|1987-1988 "Music For The Masses" Tour
- Category:1990 World Violation Tour|1990 "World Violation" Tour
- Category:1993 Devotional Tour|1993 "Devotional Tour"
- Category:1994 Exotic Tour|1994 "Exotic" Tour
- Category:1997 Ultra Parties|1997 "Ultra Parties"
- Category:1998 The Singles Tour|1998 "The Singles 86>98" Tour
- Category:2001 Exciter Tour|2001 "Exciter" Tour
- Category:2005-2006 Touring The Angel|2005-2006 "Touring The Angel"
- Category:2009-2010 Tour Of The Universe|2009-2010 "Tour Of The Universe"
- Category:2013-2014 Delta Machine Tour|2013-2014 "Delta Machine" Tour
- Category:2017-2018 Global Spirit Tour|2017-2018 "Global Spirit" Tour
- Category:Miscellaneous performances|Miscellaneous performances
- Solo tours
- Category:2003 Paper Monsters Tour|2003 "Paper Monsters" Tour (Dave Gahan solo)
- Category:2003 "A Night With Martin L. Gore"|2003 "A Night With Martin L. Gore"
- Category:2010-2011 "Selected Events"|2010-2011 "Selected Events" (Recoil)
- Category:2015 "Angels and Ghosts" Tour|2015 "Angels & Ghosts" Tour (Dave Gahan & Soulsavers)
- Information
- Category:Interviews|Interviews
- Songs|Songs
- Songs#Early live-only songs|Early live-only songs
- Support acts|Support acts
- 1980/1981 background info|1980/1981 background info
- Category:DM-related bands|DM-related bands
- Category:Tour diaries|Tour diaries
- Category:Ticket scan|Ticket stub scans
- Category:Setlist sheet picture|Set list sheet pictures
- SEARCH
- TOOLBOX
- LANGUAGES
// Example: Creating a ButtonSelectWidget that contains ButtonOptionWidgets // Note that when rendered, ButtonOptionWidgets might look like ButtonWidgets, // but the two are different. // Although optional, data is almost always specified (e.g., 1, 2, and // 3 in this example). var option1 = new OO.ui.ButtonOptionWidget( { data: 1, label: 'Option 1', title: 'Button option 1' } ), option2 = new OO.ui.ButtonOptionWidget( { data: 2, label: 'Option 2', title: 'Button option 2' } ), option3 = new OO.ui.ButtonOptionWidget( { data: 3, label: 'Option 3', title: 'Button option 3' } ),
// Create a new ButtonSelectWidget and add the button options to it // via the ButtonSelectWidget's 'items' config option. buttonSelect = new OO.ui.ButtonSelectWidget( { items: [ option1, option2, option3 ] } );
// Append the ButtonSelectWidget to the DOM. $( document.body ).append( buttonSelect.$element );