Reputation: 1270
Is there a way to use existing Polymer standard core elements , such as core-toolbar and core-menu, in Dart?
If you download the polymer project with bower you can find the javascript versions in /polymer/bower-components/
.
core-toolbar, for instance, contains a core-toolbar.html
and a metadata.html
. These have <polymer-element>
tags in them just like in Dart. Can these be adapted?
Upvotes: 3
Views: 858
Reputation: 483
In the meantime, an official package has arrived:
http://pub.dartlang.org/packages/core_elements
And you can even have the paper elements of the material design:
http://pub.dartlang.org/packages/paper_elements
Upvotes: 5
Reputation: 658077
I found this issues:
https://code.google.com/p/dart/issues/detail?id=14098 This is not the post I talked about in my comment.
https://code.google.com/p/dart/issues/detail?id=13758 The linked discussion in this issue could be the post I remembered
the TodoMVC is a Dart demo project (https://www.dartlang.org/samples/) that uses some Polymer.js polymer_elements see source in lib-elements directory
As mentioned in my comment alternatively you could use the Dart port of polymer_elements and polymer_ui_elements
Upvotes: 3