Renders the given lit-html template result
into the given node
.
Implement to customize the way rendering is applied. This is should not
typically be needed and is provided for advanced use cases.
lit-html
template result to render
node into which to render
close the modal, called internally via _propertiesChanged as the result of the open property changing
Implement to customize where the element's template is rendered by
returning an element into which to render. By default this creates
a shadowRoot for the element. To render into the element's childNodes,
return this
.
Returns a node into which to render.
Override which provides tracking of invalidated state.
close the modal, called internally via _propertiesChanged as the result of the open property changing
Override which returns the value of _shouldRender
which users
should implement to control rendering. If this method returns false,
_propertiesChanged will not be called and no rendering will occur even
if property values change or requestRender
is called.
Current element properties
Changing element properties
Previous element properties
Default implementation always returns true.
Override which warns when a user attempts to change a property during the rendering lifecycle. This is an anti-pattern and should be avoided.
Override which sets up element rendering by calling* _createRoot
and _firstRendered
.
Call to request the element to asynchronously re-render regardless of whether or not any property changes are pending.
Returns a promise which resolves after the element next renders. The promise resolves to
true
if the element rendered andfalse
if the element did not render. This is useful when users (e.g. tests) need to react to the rendered state of the element after a change is made. This can also be useful in event handlers if it is desireable to wait to send an event until after rendering. If possible implement the_didRender
method to directly respond to rendering within the rendering lifecycle.