Created
October 17, 2010 14:40
-
-
Save bolthar/630911 to your computer and use it in GitHub Desktop.
BindingToComboBox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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