Issue I’m using js-interop to use the File System Access API with Dart in a web environment. I would like to store a FileSystemDirectoryHandle in IndexedDB to reuse it later. When storing an instance of FileSystemDirectoryHandle in IndexedDB, the data
Continue readingTag: dart-js-interop
How to define a method for the class 'Proxy' in Dart js-interop?
Issue I’m currently calling a jQuery based plugin called Bootstrap Context Menu. In order to call it, I need to use the Javascript Interop library. But when I call a jQuery method from it I receive the following warning: The
Continue readingjs-interop testing if javascript object has a property
Issue Is it possible to test if a javascript object contains a property? I’m currently wrapping try/catch for each property I’d like to access. I dont think this is an efficient way to check if properties exist on the object.
Continue readingUsing the jQuery input mask plugin with a Dart Web UI component
Issue I’m trying to use an input mask jQuery plugin in Dart. The plugin works fine when the element I’m trying to add the mask to isn’t in a web component, but when I add it to a web component
Continue readingUsing array notation instead of NSM on functions deeper then js.context.X
Issue Can all objects after js.context be accessed with array notation from Dart? For example, I’d like to convert the following to use array notation: var request = js.context.gapi.client.request(js.map(requestData)); Will the following array notation work? var request = js.context[‘gapi’][‘client’][‘request’](js.map(requestData)); Also,
Continue readingObserve changes in TinyMCE from Dart
Issue According to TinyMCE API, the following JavaScript code observe changes in TinyMCE editor: tinyMCE.init({ … setup : function(ed) { ed.onChange.add(function(ed, l) { console.debug(‘Editor contents was modified. Contents: ‘ + l.content); }); } }); However, I’m unable to run this
Continue readingNoSuchMethodError with dart.js
Issue I’m trying to use paper.js with Dart through js.dart. A lot seems to work, but I also need the method importSVG from paper.js. When I try to access it with js.context.paper.project.importSVG(query(“#svg”)); I get NoSuchMethodError. It’s somehow because the method
Continue readingHow to use the proxies returned from javascript in dart
Issue I’m currently calling a function in JavaScript from dart that takes in a JSON string and a success callback. The callback from JavaScript should be returning a response as a JSON string. However I am unable to get this
Continue readingUsing the dart:js library without a html file
Issue Is it possible to use the dart:js library without having a html file to load the js files but some alternative way of loading the javascripts in the context? I need this for a command-line app, so having a
Continue readingHow to make window.prompt in Dart?
Issue I make some apps using Dart and I have one simple question. I haven’t found the prompt dialog in dart:html library. I’ve found only alert and confirm dialog calls, but that’s not, what I need. I’ve tried some other
Continue reading