I try to make the following jquery functioncall in dart
$('#mytable').handsontable({
data: data,
minSpareRows: 1,
colHeaders: true,
contextMenu: true
});
my dartcode
import 'dart:js';
void main()
{ var data = [["", "Maserati", "Mazda", "Mercedes", "Mini", "Mitsubishi"],
["2009", 0, 2941, 4303, 354, 5814] ];
context.callMethod('$', ['#mytable'])
.callMethod('handsontable', [new JsObject.jsify(
{'data': data,
'minSpareRows': 1,
'colHeaders': true,
'contextMenu': true})]);
}
The line:
context.callMethod('$', ['#mytable'])
produces an error in the editor: Expected an identifier ('$' is marked red) Any other string then the '$' semes to be ok, but the jquery function in $()