/polymer_elements

A port of polymer elements to Dart.

Primary LanguageCSSOtherNOASSERTION

Porting Polymer Elements to Dart

Reference: Polymer Toolkit UI

Note: At this point, I'm having a hard time determining if I am doing something wrong or if there is something missing from Polymer.dart. Hopefully that will start to improve in the not too distant future.

Issues, Notes and Questions:

  • Unable to pass a style attribute to an element.
  • When to use ChangeNotifierMixin instead of ObservableMixin?
  • Unable to apply most styles or attributes of an element.
  • Using extends="div" (or any html element) allows the polymer element to inherit the attributes of the html element. So, extends="div" allows you to set the id="idname" for the polymer element, for example.

This does not work (the elements still do not have background images):

<g-icon src="elements/images/star_full.png"></g-icon>
<g-icon-button src="elements/images/star_full.png"></g-icon-button>
<script type="application/dart" src="polymer_elements.dart"></script>

Elements:

  • g-icon - binding to style attribute not implemented yet?
  • g-icon-button - same issue as g-icon
  • g-field
  • g-form
  • g-checkbox
  • g-selection: incomplete - see Erik Grimes Dart version
  • g-selector: incomplete - see Erik Grimes Dart version