API
<todo-lit>
An example element.
Attributes
Name | Description | Type | Default |
---|---|---|---|
name | The name to say "Hello" to. | string | "World" |
count | The number of times the button has been clicked. | number | 0 |
Properties
Name | Attribute | Description | Type | Default |
---|---|---|---|---|
name | name | The name to say "Hello" to. | string | "World" |
count | count | The number of times the button has been clicked. | number | 0 |
renderRoot | undefined | Node or ShadowRoot into which element DOM should be rendered. Defaults to an open shadowRoot. | HTMLElement | ShadowRoot | undefined |
isUpdatePending | undefined | undefined | boolean | undefined |
hasUpdated | undefined | undefined | boolean | undefined |
updateComplete | undefined | Returns a Promise that resolves when the element has completed updating. The Promise value is a boolean that is `true` if the element completed the update without triggering another update. The Promise result is `false` if a property was set inside `updated()`. If the Promise is rejected, an exception was thrown during the update. To await additional asynchronous work, override the `getUpdateComplete` method. For example, it is sometimes useful to await a rendered element before fulfilling this Promise. To do this, first await `super.getUpdateComplete()`, then any subsequent state. | Promise | undefined |
Slots
Name | Description |
---|---|
This element has a slot |
CSS Shadow Parts
Name | Description |
---|---|
button | The button |