API
<my-element>
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 |
Slots
| Name | Description |
|---|---|
| This element has a slot |
CSS Shadow Parts
| Name | Description |
|---|---|
| button | The button |
<my-element>
undefined
Attributes
| Name | Description | Type | Default |
|---|---|---|---|
| name | undefined | string | undefined |
| count | undefined | number | undefined |
Properties
| Name | Attribute | Description | Type | Default |
|---|---|---|---|---|
| name | name | undefined | string | undefined |
| count | count | undefined | number | undefined |
| hasUpdated | undefined | undefined | number | undefined |
| updateComplete | undefined | undefined | Promise | undefined |