block.json
64 lines
| 1 | { |
| 2 | "$schema": "https://json.schemastore.org/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "srfm/checkbox", |
| 5 | "title": "Checkbox", |
| 6 | "description": "Displays a SureForms Checkbox Field", |
| 7 | "category": "sureforms", |
| 8 | "keywords": [ "checkbox", "toggle", "checkout", "engine" ], |
| 9 | "textdomain": "sureforms", |
| 10 | "supports": { |
| 11 | "reusable": false, |
| 12 | "html": false |
| 13 | }, |
| 14 | "example": { |
| 15 | "attributes": { |
| 16 | "preview": true |
| 17 | } |
| 18 | }, |
| 19 | "attributes": { |
| 20 | "preview": { |
| 21 | "type": "boolean", |
| 22 | "default": false |
| 23 | }, |
| 24 | "block_id": { |
| 25 | "type": "string" |
| 26 | }, |
| 27 | "fieldWidth": { |
| 28 | "type": "number", |
| 29 | "default": 100 |
| 30 | }, |
| 31 | "label": { |
| 32 | "type": "string", |
| 33 | "default": "Checkbox" |
| 34 | }, |
| 35 | "required": { |
| 36 | "type": "boolean" |
| 37 | }, |
| 38 | "checked": { |
| 39 | "type": "boolean", |
| 40 | "default": false |
| 41 | }, |
| 42 | "help": { |
| 43 | "type": "string", |
| 44 | "default": "" |
| 45 | }, |
| 46 | "errorMsg": { |
| 47 | "type": "string", |
| 48 | "default": "" |
| 49 | }, |
| 50 | "formId": { |
| 51 | "type": "number", |
| 52 | "default": "" |
| 53 | }, |
| 54 | "isConditionalLogic":{ |
| 55 | "type":"boolean", |
| 56 | "default":false |
| 57 | }, |
| 58 | "slug":{ |
| 59 | "type":"string", |
| 60 | "default":"" |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 |