flutter/examples
Elliott Sprehn 5f6c32c247 Make SkyElement more classy.
The syntax for implementing a SkyElement is now:

<sky-element name="element-name">
<template>
  <!-- template here -->
</template>
<script>
module.exports = class extends SkyElement {
  attached() {
     // ...
  }
  // .. methods here ..
}.register();
</script>
</sky-element>

The register() static method on SkyElement subclasses calls
document.registerElement() and returns the generated constructor.
It uses the parent <sky-element>'s name attribute to set the name
of the element.

R=rafaelw@chromium.org

Review URL: https://codereview.chromium.org/788943003
2014-12-16 16:28:28 -08:00
..
animation Fix Animations, Remove Compostior Animations. 2014-12-02 14:37:55 -08:00
calculator Docs: duplicate ID in example 2014-11-17 13:41:41 -08:00
city-list Make SkyElement more classy. 2014-12-16 16:28:28 -08:00
flights Add a version of flights that's made of components. 2014-11-14 15:00:12 -08:00
flights-app Make SkyElement more classy. 2014-12-16 16:28:28 -08:00
htmlish Specs: Fix markdown errors 2014-11-17 14:54:01 -08:00
style Docs: fix the hitTest() logic for display:toolbar since it doesn't use size 0x0 for its hidden children 2014-11-20 15:50:43 -08:00
file-browser.sky Make SkyElement more classy. 2014-12-16 16:28:28 -08:00
home.sky Specs: Drop the concept of late-bound elements. An element can never be upgraded. 2014-11-03 16:52:47 -08:00
radio.sky Specs: default exports to {} rather than document, since it makes writing modules saner 2014-11-17 13:08:09 -08:00
README.md Specs: update the layout and paint schemes to match discussions better 2014-11-20 13:58:53 -08:00
spinning-square.sky Add a basic example of a spinning square 2014-11-21 13:27:09 -08:00

Some of these examples are examples of what sky supports now. Others are examples of what sky hopes to one day support. Therefore not all these examples actually work today.