Book Image

Learning Dart

Book Image

Learning Dart

Overview of this book

Table of Contents (19 chapters)
Learning Dart
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

DQuery


(Developed by Simon Pai and Tom Yeh from Rikulo, the code for DQuery can be found at https://github.com/rikulo/dquery, and the API reference is at http://api.rikulo.org/dquery/latest/dquery.html.)

Every web developer knows and uses jQuery, the JavaScript library that creates HTML document traversal and manipulation, event handling, animation, and Ajax much simpler than in pure JavaScript. DQuery (in Version 0.5.1 currently) is a strongly typed port to Dart of jQuery, meaning that the externally visible variables are typed, in contrast to jQuery. It remains close to both Dart and jQuery conventions, so it will particularly appeal to developers who are already fluent with jQuery. Dart has some of the features of jQuery, but the event system and element wrapper of the latter still offer additional value, and that's why they have been ported; besides, DQuery uses the ubiquitous $ notation for element queries instead of Dart's query and the queryAll functions. Create a new web application...