Skip to content

Instantly share code, notes, and snippets.

@ryanwilliams
Created April 5, 2010 09:06
Show Gist options
  • Save ryanwilliams/356177 to your computer and use it in GitHub Desktop.
Save ryanwilliams/356177 to your computer and use it in GitHub Desktop.
typeSelect: SC.SelectView.design({
controlSize: SC.SMALL_CONTROL_SIZE,
layout: { centerY: 0, height: 18, left: 210, width: 120 },
items: [
{title: 'Running', value: 'running', icon: 'select-button-icon'},
{title: 'Mountain biking', value: 'mountain biking', icon: 'select-button-icon'},
{title: 'Rambling', value: 'rambling', icon: 'select-button-icon'},
{title: 'Walking', value: 'walking', icon: 'select-button-icon'}
], // items
itemTitleKey: 'title',
itemValueKey: 'value',
itemIconKey: 'icon',
value: 'mountain biking'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment