<tap-cell>
Settings-style list row and group. Primary text on the left; description, switch, or other content on the right. Use action to show a trailing chevron.
Example
Loading...
<tap-cell
.label=${"Name"}
.description=${"Mantou"}
.action=${true}></tap-cell>
Loading...
<tap-cell-group
.heading=${"Account"}
.items=${ [ { "label": "Profile", "action": true, "onClick": () => console.log('Profile') }, { "label": "Name", "description": "Mantou", "action": true, "onClick": () => console.log('Name') }, {"label":"Auto save photos","checked":true} ] }
.footer=${"Photos are saved to the album after taking."}></tap-cell-group>
<tap-cell> API
Shadow DOM; Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type | Description |
|---|---|---|---|
label(label) |
Yes | string |
Primary text on the left |
description(description) |
Yes | string |
Secondary text on the right |
action(action) |
Yes | boolean |
Show a trailing chevron for navigation rows |
Other
| Type | Value |
|---|---|
| Slot | label, description, extra |
| Part | action |
<tap-cell-group> API
Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type | Description |
|---|---|---|---|
heading(heading) |
Yes | string |
Optional group header, e.g. "Account" / "General" |
footer(footer) |
Yes | string |
Optional group footer explaining the rows above it |
items |
Yes | CellItem[] |
