Using the datatable, within the Grails UI plugin, does anyone know how to make the list of dropdownOptions dynamic?
You can specify the dropdownOptions like this:
[age:'Age', formatter:'number', editor:[type:'dropDown', controller:'demo', action:'tableChange', config:[dropdownOptions: ['Foo', 'Bar'], disableBtns:true]],
sortable:true, resizeable: true],
I was hoping it would work in the following way:
[age:'Age', formatter:'number', editor:[type:'dropDown', controller:'demo', action:'tableChange', config:[dropdownOptions: Foo.list(), disableBtns:true]],
sortable:true, resizeable: true],