Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
neferin12 committed Apr 8, 2021
1 parent c720c57 commit 95a0876
Show file tree
Hide file tree
Showing 8 changed files with 151 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/schemaDoc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

* [Untitled object in Control](./control-properties-options-properties-tags.md "Will be rendered as tags-Field")`https://educorvi.github.io/vue_json_form/schemas/control.schema.json#/properties/options/properties/tags`

* [Untitled object in Layout](./layout-properties-options.md "Additional Options")`https://educorvi.github.io/vue_json_form/schemas/layout.schema.json#/properties/options`

* [Wizard](./layout-properties-elements-layoutelement-oneof-wizard.md "A wizard that contains the form spread over multiple pages")`https://educorvi.github.io/vue_json_form/schemas/wizard.schema.json#/properties/elements/items/oneOf/4`

* [Wizard Page](./wizard-properties-pages-wizard-page.md)`https://educorvi.github.io/vue_json_form/schemas/wizard_page.schema.json#/properties/pages/items`
Expand Down
25 changes: 25 additions & 0 deletions docs/schemaDoc/control-properties-options-properties-cssclass.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Untitled string in Control Schema

```txt
https://educorvi.github.io/vue_json_form/schemas/control.schema.json#/properties/options/properties/cssClass
```

The Controls CSS classes

| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :---------------------------------------------------------------------------- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [control.schema.json*](../schemas/control.schema.json "open original schema") |

## cssClass Type

`string`

## cssClass Examples

```json
"bg-primary"
```

```json
"bg-info specialpart"
```
29 changes: 29 additions & 0 deletions docs/schemaDoc/control-properties-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Gives multiple options to configure the element
| [tags](#tags) | `object` | Optional | cannot be null | [Control](control-properties-options-properties-tags.md "https://educorvi.github.io/vue_json_form/schemas/control.schema.json#/properties/options/properties/tags") |
| [autocomplete](#autocomplete) | `string` | Optional | cannot be null | [Control](control-properties-options-properties-autocomplete.md "https://educorvi.github.io/vue_json_form/schemas/control.schema.json#/properties/options/properties/autocomplete") |
| [textAlign](#textalign) | `string` | Optional | cannot be null | [Control](control-properties-options-properties-textalign.md "https://educorvi.github.io/vue_json_form/schemas/control.schema.json#/properties/options/properties/textAlign") |
| [cssClass](#cssclass) | `string` | Optional | cannot be null | [Control](control-properties-options-properties-cssclass.md "https://educorvi.github.io/vue_json_form/schemas/control.schema.json#/properties/options/properties/cssClass") |

## label

Expand Down Expand Up @@ -369,3 +370,31 @@ Set the text-align of input fields
| `"center"` | |
| `"start"` | |
| `"end"` | |

## cssClass

The Controls CSS classes

`cssClass`

* is optional

* Type: `string`

* cannot be null

* defined in: [Control](control-properties-options-properties-cssclass.md "https://educorvi.github.io/vue_json_form/schemas/control.schema.json#/properties/options/properties/cssClass")

### cssClass Type

`string`

### cssClass Examples

```json
"bg-primary"
```

```json
"bg-info specialpart"
```
25 changes: 25 additions & 0 deletions docs/schemaDoc/layout-properties-options-properties-cssclass.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Untitled string in Layout Schema

```txt
https://educorvi.github.io/vue_json_form/schemas/layout.schema.json#/properties/options/properties/cssClass
```

The Layouts CSS classes

| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------- |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [layout.schema.json*](../schemas/layout.schema.json "open original schema") |

## cssClass Type

`string`

## cssClass Examples

```json
"bg-primary"
```

```json
"bg-info headerpart"
```
49 changes: 49 additions & 0 deletions docs/schemaDoc/layout-properties-options.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Untitled object in Layout Schema

```txt
https://educorvi.github.io/vue_json_form/schemas/layout.schema.json#/properties/options
```

Additional Options

| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :-------------------------------------------------------------------------- |
| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [layout.schema.json*](../schemas/layout.schema.json "open original schema") |

## options Type

`object` ([Details](layout-properties-options.md))

# options Properties

| Property | Type | Required | Nullable | Defined by |
| :-------------------- | :------- | :------- | :------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [cssClass](#cssclass) | `string` | Optional | cannot be null | [Layout](layout-properties-options-properties-cssclass.md "https://educorvi.github.io/vue_json_form/schemas/layout.schema.json#/properties/options/properties/cssClass") |

## cssClass

The Layouts CSS classes

`cssClass`

* is optional

* Type: `string`

* cannot be null

* defined in: [Layout](layout-properties-options-properties-cssclass.md "https://educorvi.github.io/vue_json_form/schemas/layout.schema.json#/properties/options/properties/cssClass")

### cssClass Type

`string`

### cssClass Examples

```json
"bg-primary"
```

```json
"bg-info headerpart"
```
19 changes: 19 additions & 0 deletions docs/schemaDoc/layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ The different Layouts
| [showOn](#showon) | `object` | Optional | cannot be null | [Layout](control-properties-showon-property.md "https://educorvi.github.io/vue_json_form/schemas/show_on.schema.json#/properties/showOn") |
| [label](#label) | `string` | Optional | cannot be null | [Layout](layout-properties-label.md "https://educorvi.github.io/vue_json_form/schemas/layout.schema.json#/properties/label") |
| [$schema](#schema) | `string` | Optional | cannot be null | [Layout](layout-properties-schema.md "https://educorvi.github.io/vue_json_form/schemas/layout.schema.json#/properties/$schema") |
| [options](#options) | `object` | Optional | cannot be null | [Layout](layout-properties-options.md "https://educorvi.github.io/vue_json_form/schemas/layout.schema.json#/properties/options") |

## type

Expand Down Expand Up @@ -148,3 +149,21 @@ May contain a schema reference to the uischema
### $schema Type

`string`

## options

Additional Options

`options`

* is optional

* Type: `object` ([Details](layout-properties-options.md))

* cannot be null

* defined in: [Layout](layout-properties-options.md "https://educorvi.github.io/vue_json_form/schemas/layout.schema.json#/properties/options")

### options Type

`object` ([Details](layout-properties-options.md))
2 changes: 1 addition & 1 deletion docs/schemas/control.schema.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"$id":"https://educorvi.github.io/vue_json_form/schemas/control.schema.json","$schema":"http://json-schema.org/draft-07/schema#","type":"object","title":"Control","description":"Contains a form element, e. g. a text input","properties":{"type":{"type":"string","enum":["Control"]},"scope":{"type":"string","description":"A json pointer referring to the form element in the forms json schema","format":"json-pointer"},"format":{"description":"Format for string fields","type":"string","enum":["time","date","date-time","email","password","search","url","tel","color"]},"options":{"type":"object","title":"Options","description":"Gives multiple options to configure the element","properties":{"label":{"type":"boolean","description":"Defines whether the fields label is activated","default":true},"multi":{"oneOf":[{"type":"boolean"},{"type":"integer"}],"default":false,"description":"If set true, textarea will be shown instead of textfield. \n Alternatively can be set to the number of wanted lines"},"rating":{"type":"boolean","default":false,"description":"If set to true, numberfield will appear as star-rating-field"},"placeholder":{"type":"string","description":"Will be shown as placeholder in form fields, if supported by field"},"drop-placeholder":{"type":"string","description":"Will be shown as placeholder in file upload field when file drag and drop"},"allowMultipleFiles":{"type":"boolean","description":"Allows the upload of multiple files with fileupload"},"acceptedFileType":{"type":"string","description":"The accepted File Types","examples":["image/*","image/jpeg, image/png, image/gif",".jpg, .png, .gif"]},"enumTitles":{"type":"object","title":"Titles for enum","description":"If the text in a enums select field is supposed to differ from the keys, they can be specified as properties of this object. The value in the enum must be used as property name","propertyNames":{"type":"string","minLength":1},"patternProperties":{"":{"type":"string","minLength":1}}},"radiobuttons":{"type":"boolean","description":"If set to true, a group of radiobuttons will be shown instead of the select field","default":false},"stacked":{"type":"boolean","description":"Radiobutton-/Checkbox group will be stacked if set to true","default":false},"buttons":{"title":"Buttons","description":"Render fields that support it (Radiobuttons, Checkboxgroups) as Buttons","oneOf":[{"type":"boolean","description":"set to true, if should be rendered as buttons"},{"$ref":"https://educorvi.github.io/vue_json_form/schemas/variants.schema.json"}]},"switch":{"type":"boolean","title":"Switch(es)","description":"If set to true, the checkbox(-group) it was specified for will be rendered as switch(es)"},"append":{"type":"string","description":"Will be appended to field"},"tags":{"type":"object","description":"Will be rendered as tags-Field","properties":{"enabled":{"type":"boolean"},"variant":{"$ref":"https://educorvi.github.io/vue_json_form/schemas/variants.schema.json"},"pills":{"type":"boolean"}}},"autocomplete":{"type":"string","description":"Specifies what should be autocompleted by the browser. Possible values are listed here: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#values"},"textAlign":{"type":"string","enum":["left","right","center","start","end"],"description":"Set the text-align of input fields"}}},"showOn":{"$ref":"https://educorvi.github.io/vue_json_form/schemas/show_on.schema.json"}},"examples":[{"type":"Control","scope":"#/properties/objectInJsonSchema"},{"type":"Control","scope":"#/properties/field","showOn":{"scope":"#/properties/referenceField","type":"EQUALS","referenceValue":"awesomeValue"},"options":{"label":false,"radiobuttons":true,"stacked":true}}],"additionalProperties":false,"required":["type","scope"]}
{"$id":"https://educorvi.github.io/vue_json_form/schemas/control.schema.json","$schema":"http://json-schema.org/draft-07/schema#","type":"object","title":"Control","description":"Contains a form element, e. g. a text input","properties":{"type":{"type":"string","enum":["Control"]},"scope":{"type":"string","description":"A json pointer referring to the form element in the forms json schema","format":"json-pointer"},"format":{"description":"Format for string fields","type":"string","enum":["time","date","date-time","email","password","search","url","tel","color"]},"options":{"type":"object","title":"Options","description":"Gives multiple options to configure the element","properties":{"label":{"type":"boolean","description":"Defines whether the fields label is activated","default":true},"multi":{"oneOf":[{"type":"boolean"},{"type":"integer"}],"default":false,"description":"If set true, textarea will be shown instead of textfield. \n Alternatively can be set to the number of wanted lines"},"rating":{"type":"boolean","default":false,"description":"If set to true, numberfield will appear as star-rating-field"},"placeholder":{"type":"string","description":"Will be shown as placeholder in form fields, if supported by field"},"drop-placeholder":{"type":"string","description":"Will be shown as placeholder in file upload field when file drag and drop"},"allowMultipleFiles":{"type":"boolean","description":"Allows the upload of multiple files with fileupload"},"acceptedFileType":{"type":"string","description":"The accepted File Types","examples":["image/*","image/jpeg, image/png, image/gif",".jpg, .png, .gif"]},"enumTitles":{"type":"object","title":"Titles for enum","description":"If the text in a enums select field is supposed to differ from the keys, they can be specified as properties of this object. The value in the enum must be used as property name","propertyNames":{"type":"string","minLength":1},"patternProperties":{"":{"type":"string","minLength":1}}},"radiobuttons":{"type":"boolean","description":"If set to true, a group of radiobuttons will be shown instead of the select field","default":false},"stacked":{"type":"boolean","description":"Radiobutton-/Checkbox group will be stacked if set to true","default":false},"buttons":{"title":"Buttons","description":"Render fields that support it (Radiobuttons, Checkboxgroups) as Buttons","oneOf":[{"type":"boolean","description":"set to true, if should be rendered as buttons"},{"$ref":"https://educorvi.github.io/vue_json_form/schemas/variants.schema.json"}]},"switch":{"type":"boolean","title":"Switch(es)","description":"If set to true, the checkbox(-group) it was specified for will be rendered as switch(es)"},"append":{"type":"string","description":"Will be appended to field"},"tags":{"type":"object","description":"Will be rendered as tags-Field","properties":{"enabled":{"type":"boolean"},"variant":{"$ref":"https://educorvi.github.io/vue_json_form/schemas/variants.schema.json"},"pills":{"type":"boolean"}}},"autocomplete":{"type":"string","description":"Specifies what should be autocompleted by the browser. Possible values are listed here: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete#values"},"textAlign":{"type":"string","enum":["left","right","center","start","end"],"description":"Set the text-align of input fields"},"cssClass":{"type":"string","description":"The Controls CSS classes","examples":["bg-primary","bg-info specialpart"]}}},"showOn":{"$ref":"https://educorvi.github.io/vue_json_form/schemas/show_on.schema.json"}},"examples":[{"type":"Control","scope":"#/properties/objectInJsonSchema"},{"type":"Control","scope":"#/properties/field","showOn":{"scope":"#/properties/referenceField","type":"EQUALS","referenceValue":"awesomeValue"},"options":{"label":false,"radiobuttons":true,"stacked":true}}],"additionalProperties":false,"required":["type","scope"]}
2 changes: 1 addition & 1 deletion docs/schemas/layout.schema.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"title":"Layout","$schema":"http://json-schema.org/draft-07/schema#","$id":"https://educorvi.github.io/vue_json_form/schemas/layout.schema.json","type":"object","description":"The different Layouts","properties":{"type":{"type":"string","enum":["VerticalLayout","HorizontalLayout","Group"]},"elements":{"title":"Elements","description":"The elements of the layout","type":"array","default":[],"items":{"title":"Layoutelement","oneOf":[{"$ref":"https://educorvi.github.io/vue_json_form/schemas/control.schema.json"},{"$ref":"https://educorvi.github.io/vue_json_form/schemas/layout.schema.json"},{"$ref":"https://educorvi.github.io/vue_json_form/schemas/html.schema.json"},{"$ref":"https://educorvi.github.io/vue_json_form/schemas/divider.schema.json"},{"$ref":"https://educorvi.github.io/vue_json_form/schemas/wizard.schema.json"},{"$ref":"https://educorvi.github.io/vue_json_form/schemas/button.schema.json"}]}},"showOn":{"$ref":"https://educorvi.github.io/vue_json_form/schemas/show_on.schema.json"},"label":{"type":"string"},"$schema":{"type":"string","description":"May contain a schema reference to the uischema"}},"examples":[{"type":"VerticalLayout","elements":[]},{"type":"Group","label":"This is a group","elements":[]}],"additionalProperties":false,"required":["type","elements"]}
{"title":"Layout","$schema":"http://json-schema.org/draft-07/schema#","$id":"https://educorvi.github.io/vue_json_form/schemas/layout.schema.json","type":"object","description":"The different Layouts","properties":{"type":{"type":"string","enum":["VerticalLayout","HorizontalLayout","Group"]},"elements":{"title":"Elements","description":"The elements of the layout","type":"array","default":[],"items":{"title":"Layoutelement","oneOf":[{"$ref":"https://educorvi.github.io/vue_json_form/schemas/control.schema.json"},{"$ref":"https://educorvi.github.io/vue_json_form/schemas/layout.schema.json"},{"$ref":"https://educorvi.github.io/vue_json_form/schemas/html.schema.json"},{"$ref":"https://educorvi.github.io/vue_json_form/schemas/divider.schema.json"},{"$ref":"https://educorvi.github.io/vue_json_form/schemas/wizard.schema.json"},{"$ref":"https://educorvi.github.io/vue_json_form/schemas/button.schema.json"}]}},"showOn":{"$ref":"https://educorvi.github.io/vue_json_form/schemas/show_on.schema.json"},"label":{"type":"string"},"$schema":{"type":"string","description":"May contain a schema reference to the uischema"},"options":{"description":"Additional Options","type":"object","properties":{"cssClass":{"type":"string","description":"The Layouts CSS classes","examples":["bg-primary","bg-info headerpart"]}}}},"examples":[{"type":"VerticalLayout","elements":[]},{"type":"Group","label":"This is a group","elements":[]}],"additionalProperties":false,"required":["type","elements"]}

0 comments on commit 95a0876

Please sign in to comment.