Release 2.7.0: executable handbooks and native user-site workflows
This commit is contained in:
1 parent
aa0c4d0f55
commit
d9aef957f7
562 files changed
+21064
-20387
No files matched your search
@@ -0,0 +1,28 @@
|
||||
---
|
||||
markup: occlusion
|
||||
title: List panel
|
||||
import:
|
||||
component: ext/web/component/index.mq.md
|
||||
table: lib/table.mq.md
|
||||
---
|
||||
|
||||
The existing list container is populated by the official bridge's structured render_list effect.
|
||||
|
||||
## nodes
|
||||
|
||||
| 返回 | 类型 | 说明 |
|
||||
|---|---|---|
|
||||
| result | list | Initially visible list panel with its Markdown hint |
|
||||
|
||||
The empty native list provides id items for delegated clicks. Its actual entries come from native client records and use stable data-id attributes. The hint is ordinary Markdown and knows nothing about item data or routing. Only this parent sets the list panel's visibility; detail and editor remain separate components.
|
||||
|
||||
We **empty = [Start with no server-owned item rows](table.empty_list())** and **target = [Name the client-owned list container](table.put(in=None, at="id", value="items"))** and **list = [Describe the native unordered list](component.wrap(children=`empty`, kind="list", attrs=`target`, slot="items"))**.
|
||||
We **hint = [Keep the instruction as ordinary Markdown](component.markdown(text="Click an item for detail.", slot="list-hint"))** and **children = [Place the hint after its list](table.concat(a=`list`, b=`hint`))**.
|
||||
|
||||
`attrs` =
|
||||
|
||||
| id | hidden |
|
||||
|---|---|
|
||||
| view-list | False |
|
||||
|
||||
Return *[Describe the visible list panel](component.wrap(children=`children`, kind="section", attrs=`attrs`, slot="list-panel"))*.
|
||||
Reference in new issue
Block a user