hermes-web-cli/wwwroot/list-item-template.ui
yumoqing 3edfa140e9 Fix bricks framework API usage and file structure
- Move all JS files from wwwroot/scripts/ to wwwroot/ root directory to comply with ahserver requirements
- Fix component registration: use bricks.Factory.register() instead of bricks.register()
- Fix function registration: use bricks.RF.register() instead of bricks.registerFunction()
- Update UI files to use item_template_url with external templates for List components
- Add proper list item template files (session-list-item.ui, service-list-item.ui, model-list-item.ui)
- Ensure all custom components and functions use correct bricks framework API
2026-04-22 15:49:36 +08:00

46 lines
988 B
XML

{
"widgettype": "HBox",
"options": {
"width": "100%",
"height": "50px",
"backgroundColor": "{{ '#22C55E' if item.status == 'Connected' else '#EF4444' }}",
"padding": "8px"
},
"subwidgets": [
{
"widgettype": "Text",
"options": {
"text": "{{item.name}}",
"color": "#FFFFFF",
"fontSize": "16px",
"fontWeight": "bold"
}
},
{
"widgettype": "Filler"
},
{
"widgettype": "Button",
"options": {
"label": "Details",
"backgroundColor": "#3B82F6",
"color": "#FFFFFF"
},
"binds": [
{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "app.main-content",
"options": {
"url": "{{entire_url('service-detail.ui')}}",
"params": {
"service_id": "{{item.id}}"
}
},
"mode": "replace"
}
]
}
]
}