Topic: jmaki_widget 'yahoo.dataTable' subscribe question
I am new to Rails development, and especially new to jmaki. I am modifying existing code, and would like to update the content of a yahoo.dataTable widget based on a set of radio buttons. It is difficult to find a template for this. My widget definition is:
<%= jmaki_widget 'yahoo.dataTable', :subscribe=> "/jmaki/table",
:value => {:columns => [
{ :label => 'PRIORITY', :id => 'rule_priority'},
{ :label => 'GERMPLASM TYPE', :id => 'germplasm_type'},
....
{ :actions => 'Actions', :id => 'Actions'}
],
:rows => @rows_data
}and my button definition (on the same page) is:
<%= radio_button :allocation_rule, :rule_type, "INC" %>My question is: how do I create the required publish/subscribe javascript to allow the widget to update the contents of the table with new @rows_data?
Any help would be greatly appreciated!
Last edited by NormalGuy (2012-01-27 13:08:34)