Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

BindingToComboBox

View gist:630911
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#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
Something went wrong with that request. Please try again.