This option defines the rendering function that applies result returned from the render function to the component body.
If you omit this property, rendering won't ever happen on your element.
a result returned by a render function.
a component root to which result should be applied. It can be either the component shadow root or a component itself if the lightDOM is enabled.
a component instance; it can be used in specific cases like setting the eventContext of lit-html.
This option defines the function that schedules the rendering process. Since each component renders independently and synchronously, it requires a scheduling system to run the update at the right time and not freeze the user interface. Using this option you can specify your own scheduling function instead of the default one.
By default, the schedule is used.
a callback that will be run at the scheduled time.
Generated using TypeDoc
This option allows constructing the Customized built-in element. Customized built-in elements differ from regular custom elements in many ways. E.g., many native elements cannot be extended by creating Shadow Root on them; by default, LightDOM will be created for these elements.
To create a customized built-in element, you also have to extend a proper class (e.g.
HTMLAnchorElement
for<a>
).Do not forget that using a customized built-in element requires a polyfill for Safari that does not support this part of the specification.
@element('my-anchor', {extends: 'a'}) class MyAnchor extends HTMLAnchorElement {}
List of native elements allowed to create the Shadow Root
<article>
<aside>
<blockquote>
<body>
<div>
<footer>
<header>
<main>
<nav>
<p>
<section>
<span>