let docs build with new python, and fix json

This commit is contained in:
burnettk 2024-01-10 19:02:25 -05:00
parent 14f2107b91
commit ae9b16165c
No known key found for this signature in database
2 changed files with 37 additions and 33 deletions

View File

@ -181,44 +181,48 @@ But in some other case where you actually want to have fields laid out horizonta
Example form schema: Example form schema:
{ ```json
"title": "Side by side", {
"description": "A simple form demonstrating side-by-side layout of fields", "title": "Side by side",
"type": "object", "description": "A simple form demonstrating side-by-side layout of fields",
"properties": { "type": "object",
"firstName": { "properties": {
"type": "string" "firstName": {
}, "type": "string"
"lastName": { },
"type": "string" "lastName": {
}, "type": "string"
"notes": { },
"type": "string" "notes": {
} "type": "string"
}
} }
}
}
```
Example uiSchema: Example uiSchema:
```json
{
"ui:layout": [
{ {
"ui:layout": [ "firstName": {
{ "sm": 2,
"firstName": { "md": 2,
"sm": 2, "lg": 4
"md": 2, },
"lg": 4 "lastName": {
}, "sm": 2,
"lastName": { "md": 2,
"sm": 2, "lg": 4
"md": 2, }
"lg": 4 },
} {
}, "notes": {}
{
"notes": {}
}
]
} }
]
}
```
In this case, we are saying that we want firstName and lastName in the same row, since they are both in the first element of the ui:layout array. In this case, we are saying that we want firstName and lastName in the same row, since they are both in the first element of the ui:layout array.
We are saying that firstName should take up 4 columns when a large display is used. We are saying that firstName should take up 4 columns when a large display is used.

View File

@ -27,7 +27,7 @@ packaging==23.1
pygls==1.0.2 pygls==1.0.2
Pygments==2.15.1 Pygments==2.15.1
pyspellchecker==0.7.2 pyspellchecker==0.7.2
PyYAML==6.0 PyYAML==6.0.1
requests==2.30.0 requests==2.30.0
six==1.16.0 six==1.16.0
snowballstemmer==2.2.0 snowballstemmer==2.2.0