block.json
87 lines
| 1 | { |
| 2 | "$schema": "https://json.schemastore.org/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "srfm/textarea", |
| 5 | "title": "Textarea", |
| 6 | "description": "Displays a SureForms Textarea Field", |
| 7 | "category": "sureforms", |
| 8 | "keywords": [ "textarea", "input", "custom", "field" ], |
| 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 | "defaultValue": { |
| 28 | "type": "string" |
| 29 | }, |
| 30 | "required": { |
| 31 | "type": "boolean" |
| 32 | }, |
| 33 | "placeholder": { |
| 34 | "type": "string", |
| 35 | "default": "" |
| 36 | }, |
| 37 | "fieldWidth": { |
| 38 | "type": "number", |
| 39 | "default": 100 |
| 40 | }, |
| 41 | "label": { |
| 42 | "type": "string", |
| 43 | "default": "Textarea" |
| 44 | }, |
| 45 | "help": { |
| 46 | "type": "string", |
| 47 | "default": "" |
| 48 | }, |
| 49 | "minLength": { |
| 50 | "type": "number", |
| 51 | "default": "" |
| 52 | }, |
| 53 | "maxLength": { |
| 54 | "type": "number", |
| 55 | "default": "" |
| 56 | }, |
| 57 | "rows": { |
| 58 | "type": "number", |
| 59 | "default": 4 |
| 60 | }, |
| 61 | "errorMsg": { |
| 62 | "type": "string", |
| 63 | "default": "" |
| 64 | }, |
| 65 | "formId": { |
| 66 | "type": "number", |
| 67 | "default": "" |
| 68 | }, |
| 69 | "isConditionalLogic":{ |
| 70 | "type":"boolean", |
| 71 | "default":false |
| 72 | }, |
| 73 | "slug":{ |
| 74 | "type":"string", |
| 75 | "default":"" |
| 76 | }, |
| 77 | "isRichText": { |
| 78 | "type": "boolean", |
| 79 | "default": false |
| 80 | }, |
| 81 | "readOnly": { |
| 82 | "type": "boolean", |
| 83 | "default": false |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 |