78 lines
2.2 KiB
JSON
78 lines
2.2 KiB
JSON
|
{
|
||
|
"name": "invoiceyooo Form",
|
||
|
"description": "All fields on record '/customers/1-{id}/invoices/2-{id}' ",
|
||
|
"inherits": "@budibase/standard-components/stackpanel",
|
||
|
"props": {
|
||
|
"direction": "vertical",
|
||
|
"children": [
|
||
|
{
|
||
|
"control": {
|
||
|
"_component": "common/H1",
|
||
|
"value": "Edit invoiceyooo"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"control": {
|
||
|
"_component": "@budibase/standard-components/form",
|
||
|
"formControls": [
|
||
|
{
|
||
|
"label": "amount",
|
||
|
"control": {
|
||
|
"_component": "@budibase/standard-components/textbox",
|
||
|
"value": {
|
||
|
"##bbstate": "currentinvoiceyooo.amount",
|
||
|
"##bbsource": "store"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"control": {
|
||
|
"_component": "@budibase/standard-components/stackpanel",
|
||
|
"direction": "horizontal",
|
||
|
"children": [
|
||
|
{
|
||
|
"control": {
|
||
|
"_component": "@budibase/standard-components/panel",
|
||
|
"padding": "20px",
|
||
|
"component": {
|
||
|
"_component": "common/Primary Button",
|
||
|
"contentText": "Save invoiceyooo",
|
||
|
"onClick": [
|
||
|
{
|
||
|
"##eventHandlerType": "Save Record",
|
||
|
"parameters": {
|
||
|
"statePath": "currentinvoiceyooo"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"control": {
|
||
|
"_component": "@budibase/standard-components/panel",
|
||
|
"padding": "20px",
|
||
|
"component": {
|
||
|
"_component": "common/Secondary Button",
|
||
|
"contentText": "Cancel",
|
||
|
"onClick": [
|
||
|
{
|
||
|
"##eventHandlerType": "Save Record",
|
||
|
"parameters": {
|
||
|
"statePath": "currentinvoiceyooo"
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|