Polymer core-elements for Dart
Core elements #
Note: This package is for polymer.dart < 0.17
This package wraps the Polymer project's core elements, providing the following features:
- Because the elements are bundled into a single pub package, you can add
core_elementsas a dependency in your pubspec. You don't need to install npm or bower.
- Core elements that are either performance sensitive (like
core-list) or use native objects that are difficult to use via dart:js (like
core-ajax) have been ported to Dart.
- The remaining core elements are wrapped with Dart proxy classes, making them easier to interact with from Dart apps.
You can find out more about core elements here: http://www.polymer-project.org/docs/elements/core-elements.html
Using elements #
All elements live at the top level of the
Import into HTML:
<link rel="import" href="packages/core_elements/core_input.html">
Or import into Dart:
All examples are located in a separate repo, https://github.com/dart-lang/polymer-core-and-paper-examples.