Dart widget is really poor when we compare will all the widget of jquery-ui and it's plugin.
I don't found widget similar to jqgrid.
Except waiting then dart have a lot of widget, is there a way to use other javascript library?
You can use any js lib with dart:js. See Using JavaScript from Dart.
Related
I've created a large library in Dart that need to be called from JavaScript. I'd like to avoid using JS Interop if possible. Can I use the Dart Dev Compiler to do this?
Is it possible to take the JavaScript code generated by DDC and easily call it directly?
I'm guessing you'll need some #JS because otherwise, the tree-shaking will likely remove any need for the very entrypoints you want, and the code won't even be there.
When using a third-party JavaScript library in my Dart project, I manually go through the library's documentation and iterate through its properties and methods to build the Dart code through a series of tedious context and callMethod calls. Has anyone figured out a way to automate this?
I tried to first find a command-line interface that introspects the JavaScript library so that I can auto-generate the Dart source code. I've been unsuccessful in my search.
I've tried to make my implementation of .d.ts -> dart2js annotations converter.
This is possible way to automate the process.
Please, see https://github.com/denis-aes/DefinitelyTyped.dart
Introspecting JS lib can be really hard due to the dynamic face of the JS language.
In the Typescript world there are *.d.ts files used to provide types to existing libraries. As far as I can tell most of those files are manually writen.
For now such a tool isn't yet available.
Anybody knows whether it's possible to use regular html 5/javascript web component(s) libraries in a Dart application? I think starting from now a lot of web component libraries in html 5/javascript will arise that will be of use for developing Dart applications. As long as there will be no Dart Polymer equivalents those components will not be usable and we are bound to web components written in Dart is it?
Simply including the polymer.min.js in a Dart application throws an error? Maybe it's not that simple ;-)
Thanks,
Daniel.
Update 2: If you can't wait, try this :-)
Update: Okay, now I understand. You have to wait, see here. "Polymer base elements" and "Polymer UI elements" are assigned as "Not started". Everything in Dart is now in live developing, so I think, we all, have to wait until they have it complete. I'm now waiting for circa 4 libraries for Dart, which might be completed soon, and your Polymer UI elements are going to be finished within the next few weeks... I think, there can never be any port for JS libraries, until anybody rewrites it by hand in Dart. You can join the developer club and help them to rewrite Polymer UI elements faster ;-)
"Simply including the polymer.min.js in a Dart application throws an
error?"
Can you describe, what did you mean with this? I think you should
include Dart Polymer Library and not JavaScript Polymer (see
here or
here)...
I started to use polymer in a dart environment.
Now I would like to create elements like "GWT cell table" or "GWT RichTextArea".
In the polymer elements I cann´t find widgets like this.
Do I have to implement these manually or are the other (higher?) libraries for widgets like this.
Thank Mica
Polymer is still young. More custom elements will emerge as Polymer matures.
We are currently porting polymer-elements/polymer-ui-elements to Dart.
Polymer (JS) has more elements in the works (i.e. https://github.com/Polymer/more-elements?files=1).
There are also several projects on github that work on all kinds of additional custom elements.
I haven't seen elements such as you request though.
Building one is a very good way to learn what Polymer can do.
I'm interested in incorporating the jQuery Mobile Datetime text input capabilities into a hobby Rails app that I'm building. I do not need any of the other jQuery Mobile features.
What is the best way to go about this? Will it work if I include nothing but the jquery.mobile.forms.textinput.js file from github or are there other required jQuery Mobile files?
I know in the Release Notes for RC1 they had decoupled jQM and were working on a Download Builder
http://jquerymobile.com/blog/2011/09/29/jquery-mobile-1-0rc1-released/
Download builder: In the works
Now that we’ve decoupled most of the UI widgets, we’ve set the stage
for there to be a download builder. This will let you build a custom
version of jQuery Mobile to only include the parts you need. For
example, you could just use the core files to add Ajax-based
navigation with pushState and leverage some of the touch events and
other utilities with a very lightweight build (roughly 10k). Or, you
could add in specific UI widgets like form elements, listviews, etc.
to create an optimized build. We’re aiming to have a download builder
tool launch as part of 1.0 final in some form. We’re working on a
dependency map now for all the plugins to support this tool.
Not sure if this is release as of yet
As far as I know there is no widget for a date/time picker packaged with jQuery Mobile at the moment.
There are however several options out there (and I'm sure you can find more with some Google-time):
http://mobiscroll.com/ - I use this one on mobile websites
http://dev.jtsage.com/jQM-DateBox/ - Updated to work well with jQuery Mobile 1.0RC3, but note that it requires jQuery Mobile (see J.T.Sage's comment below).