mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-24 21:54:56 +00:00
79 lines
1.7 KiB
JSON
79 lines
1.7 KiB
JSON
{
|
|
"header": {
|
|
"title": "Data Binding Designer",
|
|
"description": "Connect UI components to KV storage and static values"
|
|
},
|
|
"bindingsCard": {
|
|
"title": "Component Bindings",
|
|
"description": "Example components with data bindings",
|
|
"emptyState": "No bindings configured",
|
|
"actionLabel": "Bind"
|
|
},
|
|
"howItWorks": {
|
|
"title": "How It Works",
|
|
"steps": [
|
|
"Create data sources (KV store for persistence, static for constants)",
|
|
"Bind component properties to data sources for reactive updates"
|
|
]
|
|
},
|
|
"seed": {
|
|
"dataSources": [
|
|
{
|
|
"id": "userProfile",
|
|
"type": "kv",
|
|
"key": "user-profile",
|
|
"defaultValue": {
|
|
"name": "John Doe",
|
|
"email": "john@example.com"
|
|
}
|
|
},
|
|
{
|
|
"id": "counter",
|
|
"type": "kv",
|
|
"key": "app-counter",
|
|
"defaultValue": 0
|
|
}
|
|
],
|
|
"components": [
|
|
{
|
|
"id": "title",
|
|
"type": "Heading",
|
|
"props": {
|
|
"className": "text-2xl font-bold"
|
|
},
|
|
"bindings": {
|
|
"children": {
|
|
"source": "userProfile",
|
|
"path": "name"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "counter-display",
|
|
"type": "Text",
|
|
"props": {
|
|
"className": "text-lg"
|
|
},
|
|
"bindings": {
|
|
"children": {
|
|
"source": "counter"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "email-input",
|
|
"type": "Input",
|
|
"props": {
|
|
"placeholder": "Enter email"
|
|
},
|
|
"bindings": {
|
|
"value": {
|
|
"source": "userProfile",
|
|
"path": "email"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|