Domanda

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.

È stato utile?

Soluzione

With dart:js :

import 'dart:js';

context.callMethod(r'$', ['element1'])
       .callMethod('handsontable', [new JsObject.jsify(options)]);
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top