budibase/packages/server/appPackages/testApp2/components/invoiceyooo Form.json

78 lines
2.2 KiB
JSON
Raw Normal View History

2019-10-10 07:18:02 +02:00
{
"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"
}
}
]
}
}
}
]
}
}
]
}
}