diff --git a/docs/Building_Diagrams/Forms.md b/docs/Building_Diagrams/Forms.md index 5caf28ad..186cf6a0 100644 --- a/docs/Building_Diagrams/Forms.md +++ b/docs/Building_Diagrams/Forms.md @@ -181,44 +181,48 @@ But in some other case where you actually want to have fields laid out horizonta Example form schema: - { - "title": "Side by side", - "description": "A simple form demonstrating side-by-side layout of fields", - "type": "object", - "properties": { - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string" - }, - "notes": { - "type": "string" - } - } +```json +{ + "title": "Side by side", + "description": "A simple form demonstrating side-by-side layout of fields", + "type": "object", + "properties": { + "firstName": { + "type": "string" + }, + "lastName": { + "type": "string" + }, + "notes": { + "type": "string" } + } +} +``` Example uiSchema: +```json +{ + "ui:layout": [ { - "ui:layout": [ - { - "firstName": { - "sm": 2, - "md": 2, - "lg": 4 - }, - "lastName": { - "sm": 2, - "md": 2, - "lg": 4 - } - }, - { - "notes": {} - } - ] + "firstName": { + "sm": 2, + "md": 2, + "lg": 4 + }, + "lastName": { + "sm": 2, + "md": 2, + "lg": 4 + } + }, + { + "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. We are saying that firstName should take up 4 columns when a large display is used. diff --git a/docs/requirements.txt b/docs/requirements.txt index e54989b8..dad19baf 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -27,7 +27,7 @@ packaging==23.1 pygls==1.0.2 Pygments==2.15.1 pyspellchecker==0.7.2 -PyYAML==6.0 +PyYAML==6.0.1 requests==2.30.0 six==1.16.0 snowballstemmer==2.2.0