Update to Lit 2.0.0 (manually)
Will attempt to get this back to syncing with monorepo history per https://github.com/lit/lit#exporting-starter-templates in a follow-up.
This commit is contained in:
@@ -29,110 +29,120 @@
|
||||
<div id="main-wrapper">
|
||||
<main>
|
||||
|
||||
<h1>API</h1>
|
||||
|
||||
<h2><my-element></h2>
|
||||
<div>
|
||||
An example element.
|
||||
</div>
|
||||
|
||||
<h3>Attributes</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th><th>Description</th><th>Type</th><th>Default</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>name</td><td>The name to say "Hello" to.</td><td>string</td><td>"World"</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>count</td><td>The number of times the button has been clicked.</td><td>number</td><td>0</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<h3>Properties</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th><th>Attribute</th><th>Description</th><th>Type</th><th>Default</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>name</td><td>name</td><td>The name to say "Hello" to.</td><td>string</td><td>"World"</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>count</td><td>count</td><td>The number of times the button has been clicked.</td><td>number</td><td>0</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>renderRoot</td><td>undefined</td><td>Node or ShadowRoot into which element DOM should be rendered. Defaults
|
||||
to an open shadowRoot.</td><td>HTMLElement | ShadowRoot</td><td>undefined</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>isUpdatePending</td><td>undefined</td><td>undefined</td><td>boolean</td><td>undefined</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>hasUpdated</td><td>undefined</td><td>undefined</td><td>boolean</td><td>undefined</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>updateComplete</td><td>undefined</td><td>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.</td><td>Promise<boolean></td><td>undefined</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
<h3>Slots</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th><th>Description</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td></td><td>This element has a slot</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<h3>CSS Shadow Parts</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th><th>Description</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>button</td><td>The button</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
<h1>API</h1>
|
||||
|
||||
<h2><my-element></h2>
|
||||
<div>
|
||||
An example element.
|
||||
</div>
|
||||
|
||||
<h3>Attributes</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th><th>Description</th><th>Type</th><th>Default</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>name</td><td>The name to say "Hello" to.</td><td>string</td><td>'World'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>count</td><td>The number of times the button has been clicked.</td><td>number</td><td>0</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<h3>Properties</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th><th>Attribute</th><th>Description</th><th>Type</th><th>Default</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>name</td><td>name</td><td>The name to say "Hello" to.</td><td>string</td><td>'World'</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>count</td><td>count</td><td>The number of times the button has been clicked.</td><td>number</td><td>0</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<h3>Methods</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th><th>Parameters</th><th>Description</th><th>Return</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>sayHello</td><td>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th><th>Description</th><th>Type</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>name</td><td>The name to say "Hello" to</td><td>string</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</td><td>Formats a greeting</td><td>string</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<h3>Events</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th><th>Description</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>count-changed</td><td>Indicates when the count changes</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<h3>Slots</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th><th>Description</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>(default)</td><td>This element has a slot</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
<h3>CSS Shadow Parts</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th><th>Description</th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>button</td><td>The button</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<p>
|
||||
Made with
|
||||
<a href="https://github.com/PolymerLabs/lit-starter-ts">lit-starter-ts</a>
|
||||
<a href="https://github.com/lit/lit-element-starter-ts">lit-starter-ts</a>
|
||||
</p>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user