Question

I'm new to dart, and I'm trying to realize how to implement the following javascript code in dart:

$('element1').handsontable(options);

handsontable is a third party library that I want to use.

Was it helpful?

Solution

With dart:js :

import 'dart:js';

context.callMethod(r'$', ['element1'])
       .callMethod('handsontable', [new JsObject.jsify(options)]);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top