<todo-lit>

A web component just for me.

API

<todo-lit>

An example element.

Attributes

NameDescriptionTypeDefault
nameThe name to say "Hello" to.string"World"
countThe number of times the button has been clicked.number0

Properties

NameAttributeDescriptionTypeDefault
namenameThe name to say "Hello" to.string"World"
countcountThe number of times the button has been clicked.number0
renderRootundefinedNode or ShadowRoot into which element DOM should be rendered. Defaults to an open shadowRoot.HTMLElement | ShadowRootundefined
isUpdatePendingundefinedundefinedbooleanundefined
hasUpdatedundefinedundefinedbooleanundefined
updateCompleteundefinedReturns 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.Promiseundefined

Slots

NameDescription
This element has a slot

CSS Shadow Parts

NameDescription
buttonThe button