- Replace invalid 'Page' and 'Card' components with valid bricks components (VBox, HBox, Filler, etc.) - Add comprehensive examples for all major bricks components in examples/ directory - Update hermes-web-cli UI files to use correct component hierarchy - Include examples for: VBox, HBox, Filler, ResponsableBox, Form, Button, Text, Modal, TabPanel, DataViewer, Tree, Image, VideoPlayer, Input, LLMOut - Follow proper bricks-framework JSON structure with widgettype, options, subwidgets - Ensure all examples are production-ready and follow module development specifications
31 lines
592 B
XML
31 lines
592 B
XML
{
|
|
"widgettype": "DataViewer",
|
|
"options": {
|
|
"data_url": "/api/sample-data",
|
|
"page_rows": 10,
|
|
"row_options": {
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"label": "ID",
|
|
"uitype": "int"
|
|
},
|
|
{
|
|
"name": "name",
|
|
"label": "名称",
|
|
"uitype": "str"
|
|
},
|
|
{
|
|
"name": "email",
|
|
"label": "邮箱",
|
|
"uitype": "email"
|
|
}
|
|
]
|
|
},
|
|
"editable": {
|
|
"add_icon": "fa fa-plus",
|
|
"update_icon": "fa fa-edit",
|
|
"delete_icon": "fa fa-trash"
|
|
}
|
|
}
|
|
} |