mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-02-17 14:30:34 +08:00
fix(docs): Add default values and loading to blocks.
This commit is contained in:
parent
f5e65ab406
commit
fcadf76edc
@ -1,7 +1,9 @@
|
||||
{
|
||||
"valueType": "string",
|
||||
"category": "input",
|
||||
"loading": false,
|
||||
"loading": {
|
||||
"type": "SkeletonInput"
|
||||
},
|
||||
"test": {
|
||||
"validation": true,
|
||||
"required": true
|
||||
|
@ -1,6 +1,8 @@
|
||||
{
|
||||
"category": "display",
|
||||
"loading": false,
|
||||
"loading": {
|
||||
"type": "SkeletonButton"
|
||||
},
|
||||
"schema": {
|
||||
"properties": {
|
||||
"type": "object",
|
||||
@ -8,7 +10,8 @@
|
||||
"properties": {
|
||||
"block": {
|
||||
"type": "boolean",
|
||||
"description": "Fit the button's span to its parent container span."
|
||||
"description": "Fit the button's span to its parent container span.",
|
||||
"default": false
|
||||
},
|
||||
"color": {
|
||||
"type": "string",
|
||||
@ -19,19 +22,23 @@
|
||||
},
|
||||
"danger": {
|
||||
"type": "boolean",
|
||||
"description": "Set button style to danger."
|
||||
"description": "Set button style to danger.",
|
||||
"default": false
|
||||
},
|
||||
"disabled": {
|
||||
"type": "boolean",
|
||||
"description": "Disable the button if true."
|
||||
"description": "Disable the button if true.",
|
||||
"default": false
|
||||
},
|
||||
"ghost": {
|
||||
"type": "boolean",
|
||||
"description": "Make the button's background transparent when true."
|
||||
"description": "Make the button's background transparent when true.",
|
||||
"default": false
|
||||
},
|
||||
"hideTitle": {
|
||||
"type": "boolean",
|
||||
"description": "Hide the button's title."
|
||||
"description": "Hide the button's title.",
|
||||
"default": false
|
||||
},
|
||||
"href": {
|
||||
"type": "string",
|
||||
|
@ -1,7 +1,9 @@
|
||||
{
|
||||
"valueType": "string",
|
||||
"category": "input",
|
||||
"loading": false,
|
||||
"loading": {
|
||||
"type": "SkeletonInput"
|
||||
},
|
||||
"test": {
|
||||
"validation": true,
|
||||
"required": true
|
||||
|
@ -1,7 +1,9 @@
|
||||
{
|
||||
"valueType": "string",
|
||||
"category": "input",
|
||||
"loading": false,
|
||||
"loading": {
|
||||
"type": "SkeletonInput"
|
||||
},
|
||||
"test": {
|
||||
"validation": true,
|
||||
"required": true
|
||||
|
@ -16,8 +16,12 @@ _ref:
|
||||
path: templates/blocks/template.yaml.njk
|
||||
vars:
|
||||
block_type: AutoComplete
|
||||
value_type: String
|
||||
value_type: string
|
||||
category: input
|
||||
init_property_values:
|
||||
options:
|
||||
- one
|
||||
- two
|
||||
description_content: |
|
||||
The AutoComplete block is a text input that has a list of suggestions for the user. These suggestions are filtered as the user fills in the input. The user is also allowed to fill in an input not part of that list.
|
||||
|
||||
|
@ -16,7 +16,7 @@ _ref:
|
||||
path: templates/blocks/template.yaml.njk
|
||||
vars:
|
||||
block_type: TextInput
|
||||
value_type: String
|
||||
value_type: string
|
||||
category: input
|
||||
description_content: |
|
||||
The `TextInput` block is a single line text input.
|
||||
|
Loading…
Reference in New Issue
Block a user