button-group.schema.json
7 months ago
checkbox.schema.json
7 months ago
nav-menu.schema.json
7 months ago
radio.schema.json
7 months ago
select.schema.json
7 months ago
true-false.schema.json
7 months ago
checkbox.schema.json
35 lines
| 1 | { |
| 2 | "title": "SCF Checkbox Field Fragment", |
| 3 | "description": "Type-specific properties for checkbox fields", |
| 4 | "type": "object", |
| 5 | "properties": { |
| 6 | "type": { |
| 7 | "enum": [ "checkbox" ] |
| 8 | }, |
| 9 | "choices": { "$ref": "#/definitions/choices" }, |
| 10 | "default_value": { "$ref": "#/definitions/default_value_multi" }, |
| 11 | "return_format": { "$ref": "#/definitions/return_format_choice" }, |
| 12 | "layout": { "$ref": "#/definitions/layout_choice" }, |
| 13 | "toggle": { |
| 14 | "type": "integer", |
| 15 | "default": 0, |
| 16 | "description": "Show a toggle all checkbox (1 for yes, 0 for no)" |
| 17 | }, |
| 18 | "allow_custom": { |
| 19 | "type": "integer", |
| 20 | "default": 0, |
| 21 | "description": "Allow custom values to be added (1 for yes, 0 for no)" |
| 22 | }, |
| 23 | "save_custom": { |
| 24 | "type": "integer", |
| 25 | "default": 0, |
| 26 | "description": "Save custom values to the field choices (1 for yes, 0 for no)" |
| 27 | }, |
| 28 | "custom_choice_button_text": { |
| 29 | "type": "string", |
| 30 | "default": "Add new choice", |
| 31 | "description": "Text for the add custom choice button (translatable)" |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 |