block.json
53 lines
| 1 | { |
| 2 | "$schema": "https://json.schemastore.org/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "srfm/inline-button", |
| 5 | "title": "Custom Button", |
| 6 | "description": "Displays a SureForms Custom Button", |
| 7 | "category": "sureforms", |
| 8 | "keywords": [ |
| 9 | "inline submit", |
| 10 | "button", |
| 11 | "submit", |
| 12 | "inline", |
| 13 | "custom", |
| 14 | "custom button" |
| 15 | ], |
| 16 | "textdomain": "sureforms", |
| 17 | "supports": { |
| 18 | "reusable": false, |
| 19 | "html": false, |
| 20 | "multiple": false |
| 21 | }, |
| 22 | "example": { |
| 23 | "attributes": { |
| 24 | "preview": true |
| 25 | } |
| 26 | }, |
| 27 | "attributes": { |
| 28 | "preview": { |
| 29 | "type": "boolean", |
| 30 | "default": false |
| 31 | }, |
| 32 | "block_id": { |
| 33 | "type": "string" |
| 34 | }, |
| 35 | "fieldWidth": { |
| 36 | "type": "number", |
| 37 | "default": 100 |
| 38 | }, |
| 39 | "buttonText": { |
| 40 | "type": "string", |
| 41 | "default": "Submit" |
| 42 | }, |
| 43 | "formId": { |
| 44 | "type": "number", |
| 45 | "default": "" |
| 46 | }, |
| 47 | "isConditionalLogic": { |
| 48 | "type": "boolean", |
| 49 | "default": false |
| 50 | } |
| 51 | } |
| 52 | } |
| 53 |