diff --git a/docs/_api/theme/layouts/default.hbs b/docs/_api/theme/layouts/default.hbs index 021940b3..f50e5cfc 100644 --- a/docs/_api/theme/layouts/default.hbs +++ b/docs/_api/theme/layouts/default.hbs @@ -33,7 +33,7 @@
super.updateComplete
The Promise returns a boolean that indicates if the update resolved without triggering another update.
protected async performUpdate(): Promise<unknown> { await new Promise((resolve) => requestAnimationFrame(() => resolve())); super.performUpdate(); -}
(optional) old value of requesting property
A Promise that is resolved when the update completes.
Inherited from UpdatingElement.hasUpdated
Overrides UpdatingElement.finalize
- 🛠 Status: In Development - LitElement is currently in development. It's on the fast track to a 1.0 release, so we encourage you to use it and give us your feedback, but there are things that haven't been finalized yet and you can expect some changes. -
LitElement is currently in development. It's on the fast track to a 1.0 release, so we encourage you to use it and give us your feedback, but there are things that haven't been finalized yet and you can expect some changes.
npm install --save lit-element
npm install --save lit-element +
Extends UpdatingElement to include lit-html templating. Users define a render method to provide an element template, which is called when required by update.
render
update
Import LitElement and html from this module to create a component:
LitElement
html
import { LitElement, html } from 'lit-element'; + import { LitElement, html } from 'lit-element'; class MyElement extends LitElement { render() { @@ -113,9 +110,11 @@ lit-element } } -customElements.define('my-element', MyElement); +customElements.define('my-element', MyElement); +
import { LitElement, html } from 'lit-element'; class MyElement extends LitElement { render() { @@ -113,9 +110,11 @@ lit-element } } -customElements.define('my-element', MyElement);
import { UpdatingElement } from 'lit-element/lib/updating-element.js';
import { UpdatingElement } from 'lit-element/lib/updating-element.js'; +
Custom Element base class that supports declaring observable properties, reflecting attributes to properties, and the core update lifecycle methods.
Function called to convert a property value to an attribute value.
It returns unknown instead of string, to be compatible with + https://github.com/WICG/trusted-types (and similar efforts).
Additional items to add to the end of array1.
Inherited from Array.concat