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
true-false.schema.json
36 lines
| 1 | { |
| 2 | "title": "SCF True/False Field Fragment", |
| 3 | "description": "Type-specific properties for true/false toggle fields", |
| 4 | "type": "object", |
| 5 | "properties": { |
| 6 | "type": { |
| 7 | "enum": [ "true_false" ] |
| 8 | }, |
| 9 | "default_value": { |
| 10 | "type": "integer", |
| 11 | "default": 0, |
| 12 | "description": "Default state (0 for off, 1 for on)" |
| 13 | }, |
| 14 | "message": { |
| 15 | "type": "string", |
| 16 | "default": "", |
| 17 | "description": "Text displayed alongside the checkbox" |
| 18 | }, |
| 19 | "ui": { |
| 20 | "type": "integer", |
| 21 | "default": 0, |
| 22 | "description": "Use stylized toggle UI (1 for yes, 0 for no)" |
| 23 | }, |
| 24 | "ui_on_text": { |
| 25 | "type": "string", |
| 26 | "default": "", |
| 27 | "description": "Text shown when toggle is on (empty for default 'Yes')" |
| 28 | }, |
| 29 | "ui_off_text": { |
| 30 | "type": "string", |
| 31 | "default": "", |
| 32 | "description": "Text shown when toggle is off (empty for default 'No')" |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 |