<tap-cell>
设置类列表行与分组。左侧主文案,右侧可为描述、开关或其他内容,action 显示右箭头。
Example
Loading...
<tap-cell
.label=${"Name"}
.description=${"馒头毫无营养"}
.action=${true}></tap-cell>
Loading...
<tap-cell-group
.heading=${"Account"}
.items=${ [ { "label": "Profile", "action": true, "onClick": () => console.log('Profile') }, { "label": "Name", "description": "馒头毫无营养", "action": true, "onClick": () => console.log('Name') }, {"label":"Auto save photos","checked":true} ] }
.footer=${"拍摄后自动保存到相册。"}></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[] |
