I'm trying to create a simple dialog in Dart and I thought it was easier to use existing javascript libraries. Here you can find the basic example, basically
$( "#dialog" ).dialog();
On internet and stackoverflow you can find 1000 examples but none works to me. I suppose this is the correct way:
import 'dart:js' as js;
//[...]
var jquery = new js.JsObject(js.context['jQuery']);
var myob = jquery('#dialog').dialog();
All I get is this error:
Breaking on exception: Class 'JsObject' has no instance method 'call'.
Have I misread Dart's documentation?