Brian, my guess is that either my instructions were unclear or a step was missed when you added it. Can you share the jtable.ijs file?
Here is my file: https://gist.github.com/joebo/83a6747bb755f4a133f19b1dd37b9b81 On Wed, Nov 16, 2016 at 1:18 PM, Brian Schott <[email protected]> wrote: > Joe, there is a problem. If I leave in the following line, executing > > `jtable 'e1';'n' [ n=: i.3 4` > > does not know to name the table e1, nor what n is. > > On the other hand, if I omit that following line, the alert produces an > undefined result. > > outsideClickDeselects: false //NEW (is "the following line") > > Do you have any ideas? > > Oh and btw, what I want to be able to do for now is to supply a monadic > verb or primitive verb and have it applied to the selected cells. Later, I > would like to supply a dyadic verb to 2 selections and have the verb > applied to the two arguments which are the 2 selections. > > > Thanks, > > On Tue, Nov 15, 2016 at 9:05 PM, Joe Bogner <[email protected]> wrote: > >> Brian, >> >> Yes, it is free. >> >> You can access it via: $('#example').data('handsontable').getSelected() >> >> How do you want to use it? >> >> The most basic way to get at it >> >> HBS=: 0 : 0 >> .... <snip> >> '<button type="button" id="getselected">get selected</button>' >> ... >> '<div id="dialog" title="Table Editor Error"></div>' >> ) >> >> >> >> function ev_body_load() >> { >> document.title= window.name; >> $(function(){$("#dialog").dialog({autoOpen:false,modal:true});}); >> bindenter(); >> bindsave(); >> // start new >> $(function() {$('#getselected').click(function() { >> alert($('#example').data('handsontable').getSelected()) }); }); >> // end new >> jdoajax([]); >> } >> >> >> NOTE: you also need to set the outsideClickDeselects property >> otherwise it will lose the selection on click - >> https://github.com/handsontable/handsontable/issues/125 >> >> $('#example').handsontable({ >> data: data, >> minSpareRows: 1, >> minSpareCols: 1, >> colHeaders: true, >> rowHeaders: true, >> contextMenu: true, >> type: sf, >> undo: true, >> outsideClickDeselects: false //NEW >> }); >> >> >> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
