The simple answer is: you have to add a groovy collection to your model like this (I wanted to be able to choose a user, so I collected user names from the spring security core user class)
def userNames = User.list().collect{it.username} render(template: '/layouts/template', model: [userNames: userNames])
Now you can do it like this:
..., config:[dropdownOptions: userNames, disableBtns:true]],...
No comments:
Post a Comment