mirror of
https://github.com/flutter/flutter
synced 2024-10-13 11:42:54 +00:00
5f6c32c247
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 |
||
---|---|---|
.. | ||
animation | ||
calculator | ||
city-list | ||
flights | ||
flights-app | ||
htmlish | ||
style | ||
file-browser.sky | ||
home.sky | ||
radio.sky | ||
README.md | ||
spinning-square.sky |
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.