Skip to content

Instantly share code, notes, and snippets.

@Iheartweb
Created March 29, 2012 16:56
Show Gist options
  • Select an option

  • Save Iheartweb/2239893 to your computer and use it in GitHub Desktop.

Select an option

Save Iheartweb/2239893 to your computer and use it in GitHub Desktop.
<div data-lu="Switcher" data-lu-config="{
'Switcher': {
states: ['a', 'b', 'c']
}
}">
<ul><!-- list items --></ul>
<br/>
<button data-lu="Button:Switch" data-lu-config="{
'Button:Switch': {
states: 'a'
}
}" type="button">A</button>
<button data-lu="Button:Switch" data-lu-config="{
'Button:Switch': {
states: 'b'
}
}" type="button">B</button>
<button data-lu="Button:Switch" data-lu-config="{
'Button:Switch': {
states: 'c'
}
}" type="button">C</button>
<button data-lu="Button:Switch" data-lu-config="{
'Button:Switch': {
states: 'd'
}
}" type="button">D</button>
<button data-lu="Button:Switch" data-lu-config="{
'Button:Switch': {
states: 'a b'
}
}" type="button">AB</button>
<button data-lu="Button:Switch" data-lu-config="{
'Button:Switch': {
states: ['a', 'b', 'c']
}
}" type="button">A/B/C</button>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment