1
0
Fork 0
mirror of synced 2024-07-07 15:25:52 +12:00
budibase/packages/server/appPackages/testApp2/standard-components/components.json

70 lines
1.8 KiB
JSON
Raw Normal View History

2019-08-20 08:18:23 +12:00
{
"_lib": {
"path":"./dist/index.js"
},
"button" : {
"importPath": "button",
"name": "Button",
"description": "an html <button />",
"props": {
"contentText": { "type": "string", "default": "Button" },
"contentComponent": "component",
2019-08-27 18:32:56 +12:00
"className": {"type": "string", "default": "default"},
2019-08-20 08:18:23 +12:00
"disabled": "bool"
},
"tags": ["button"]
2019-08-27 18:32:56 +12:00
},
"login" : {
"importPath": "login",
"name": "Login Control",
"desciption": "A control that accepts username, password an also handles password resets",
"props" : {
"logo": "asset",
"loginRedirect": "string",
"usernameLabel": {"type":"string", "default": "Username"},
"passwordLabel": {"type":"string", "default": "Password"},
"loginButtonLabel": {"type":"string", "default": "Login"}
},
"tags": ["login", "credentials", "password", "logon"]
},
"formControl" : {
"importPath": "formControl",
"name": "Form Control",
"desciption": "A wrapper for a control, used inside a form. Allows a label, and properly alligns the control inside the parent form",
"props" : {
"containerClass": "string",
"labelContainerClass": "string",
"controlContainerClass": "string",
"label": "string",
"control": "component",
"fullWidth": "bool"
},
"tags": ["login"]
},
"form" : {
"importPath": "form",
"name": "Form",
"desciption": "A form - you should usually add FormControls as children to get nice allignment",
"props" : {
"containerClass": "string",
"formControls": {
"type":"array",
"elementDefinition": {
"control":"component"
}
}
},
"tags": ["form"]
},
"textbox" : {
"importPath": "textbox",
"name": "Textbox",
"desciption": "An input type=text or password",
"props" : {
"value": "string",
"hideValue": "boolean",
"className": {"type": "string", "default": "default"}
},
"tags": ["form"]
2019-08-20 08:18:23 +12:00
}
}