Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for web components #17

Open
pakastin opened this issue Nov 14, 2017 · 2 comments
Open

Add support for web components #17

pakastin opened this issue Nov 14, 2017 · 2 comments

Comments

@pakastin
Copy link
Member

pakastin commented Nov 14, 2017

  • registerElement
  • connectedCallback
  • extend
    ...
@MichaelFBA
Copy link

constructor
An instance of the element is created or upgraded. Useful for initializing state, settings up event listeners, or creating shadow dom. See the spec for restrictions on what you can do in the constructor.

connectedCallback
Called every time the element is inserted into the DOM. Useful for running setup code, such as fetching resources or rendering. Generally, you should try to delay work until this time.

disconnectedCallback
Called every time the element is removed from the DOM. Useful for running clean up code.

attributeChangedCallback(attrName, oldVal, newVal)
Called when an observed attribute has been added, removed, updated, or replaced. Also called for initial values when an element is created by the parser, or upgraded. Note: only attributes listed in the observedAttributes property will receive this callback.

adoptedCallback()
The custom element has been moved into a new document (e.g. someone called document.adoptNode(el)).

@pakastin
Copy link
Member Author

Perfect! 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants