Skip to content

Instantly share code, notes, and snippets.

@bolthar
Created October 17, 2010 14:40
Show Gist options
  • Save bolthar/630911 to your computer and use it in GitHub Desktop.
Save bolthar/630911 to your computer and use it in GitHub Desktop.
BindingToComboBox
#viewmodel file (my_view_model.rb, in /viewmodels)
class MyViewModel < FreightViewModel
def my_list
return ['my', 'list', 'of', 'strings']
end
end
#bindings file (my_view.bnd.yml, in /views), assuming here that the combo is called 'mycombo'
mycombo:
property : elements
path : my_list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment