Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

polymer-dart-patterns

Small, useful, snippets/samples that show how to do things the Polymer.dart way.

Subscribe to updates I use polymer-dart-patterns


Statistics on polymer-dart-patterns

Number of watchers on Github 68
Number of open issues 1
Average time to close an issue 28 days
Main language HTML
Average time to merge a PR 3 days
Open pull requests 1+
Closed pull requests 3+
Last commit over 3 years ago
Repo Created about 5 years ago
Repo Last Updated over 1 year ago
Size 4 MB
Organization / Authordart-archive
Contributors11
Page Updated
Do you use polymer-dart-patterns? Leave a review!
View polymer-dart-patterns activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating polymer-dart-patterns for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Polymer Snippets

Small, useful, snippets/samples that show how to do things the Polymer way.

Port of polymer.js snippets in https://github.com/PolymerLabs/polymer-snippets.

Repo structure

All snippets go in web/.

Each snippet should have its own directory. Here is a typical list of files for a snippet:

  • my_element.html: the HTML for <my_element>
  • my_element.dart: the Dart code for <my_element>
  • index.html: the entry point for the snippet. Imports <my-element>.
  • README.md: the documentation for the snippet. This should mirror the documentation in the original as much as possible.

Unless there is a compelling reason to do so, name your element <my_element>.

Be sure to add the snippet to the entry_points list in pubspec.yaml.

Keeping track of upstream commits

When porting a polymer.js snippet, be sure to reference the original, and include the commit ID. For example:

Ports https://github.com/PolymerLabs/polymer-snippets/blob/ca250355c6d4076f16353fb386c07ca106d6fc4e/snippets/forms/binding-to-a-text-input.html

See https://help.github.com/articles/getting-permanent-links-to-files#press-y-to-permalink-to-a-file-in-a-specific-commit for details on how to get a link to the commit ID.

Making your snippets Dart-y

All snippets should follow the Dart Style Guide.

Before creating a pull request, please run the sample in Dart Editor, ensuring that it runs in both JS and Dartium without errors or warnings.

Contents

Basics

Control flow

Insertion points

Observing changes

Forms

Events

Styling elements

Layout attributes

Polymer elements

Samples using Polymer elements.

Paper toolbar

polymer-dart-patterns open issues Ask a question     (View All Issues)
  • over 3 years link to snipped dropped in index.html?
polymer-dart-patterns open pull requests (View All Pulls)
  • Fix #39 Create gh-pages
polymer-dart-patterns list of languages used
Other projects in HTML