Skip to content

Instantly share code, notes, and snippets.

@40
Created June 30, 2012 08:08
Show Gist options
  • Select an option

  • Save 40/3022894 to your computer and use it in GitHub Desktop.

Select an option

Save 40/3022894 to your computer and use it in GitHub Desktop.
Canadian Provinces(States) DropDown Component - BB10 Cascades
DropDown {
title: "Choose a province"
enabled: true
onSelectedIndexChanged: {
console.log ("SelectedIndex was changed to " + selectedIndex);
}
Option {
text: "British Columbia"
value: "BC"
}
Option {
text: "Ontario"
value: "ON"
}
Option {
text: "Newfoundland and Labrador"
value: "NL"
}
Option {
text: "Nova Scotia"
value: "NS"
}
Option {
text: "Prince Edward Island"
value: "PE"
}
Option {
text: "New Brunswick"
value: "NB"
}
Option {
text: "Quebec"
value: "QC"
}
Option {
text: "Manitoba"
value: "MB"
}
Option {
text: "Saskatchewan"
value: "SK"
}
Option {
text: "Alberta"
value: "AB"
}
Option {
text: "Northwest Territories"
value: "NT"
}
Option {
text: "Nunavut"
value: "NU"
}
Option {
text: "Yukon Territory"
value: "YT"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment