block.json
83 lines
| 1 | { |
| 2 | "apiVersion": 2, |
| 3 | "name": "jet-forms/textarea-field", |
| 4 | "category": "jet-form-builder-fields", |
| 5 | "keywords": [ |
| 6 | "jetformbuilder", |
| 7 | "field", |
| 8 | "textarea" |
| 9 | ], |
| 10 | "textdomain": "jet-form-builder", |
| 11 | "supports": { |
| 12 | "customClassName": false, |
| 13 | "html": false |
| 14 | }, |
| 15 | "title": "Textarea Field", |
| 16 | "icon": "<svg width=\"64\" height=\"64\" viewBox=\"0 0 64 64\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"64\" height=\"64\" fill=\"white\"/><rect x=\"6\" y=\"6\" width=\"52\" height=\"52\" rx=\"3\" fill=\"white\" stroke=\"#162B40\" stroke-width=\"2\"/><rect x=\"52\" y=\"1\" width=\"11\" height=\"11\" rx=\"1\" fill=\"white\" stroke=\"#162B40\" stroke-width=\"2\"/><rect x=\"52\" y=\"52\" width=\"11\" height=\"11\" rx=\"1\" fill=\"white\" stroke=\"#162B40\" stroke-width=\"2\"/><rect x=\"1\" y=\"1\" width=\"11\" height=\"11\" rx=\"1\" fill=\"white\" stroke=\"#162B40\" stroke-width=\"2\"/><rect x=\"1\" y=\"52\" width=\"11\" height=\"11\" rx=\"1\" fill=\"white\" stroke=\"#162B40\" stroke-width=\"2\"/><path d=\"M43 20.581C44.1046 20.581 45 19.6856 45 18.581V17C45 15.8954 44.1046 15 43 15H20C18.8954 15 18 15.8954 18 17V18.581C18 19.6856 18.8954 20.581 20 20.581H28.3686V48C28.3686 49.1046 29.264 50 30.3686 50H32.6092C33.7138 50 34.6092 49.1046 34.6092 48L34.6092 20.581H43Z\" fill=\"#6F8BFF\" stroke=\"#162B40\" stroke-width=\"2\"/></svg>", |
| 17 | "attributes": { |
| 18 | "minlength": { |
| 19 | "type": "number", |
| 20 | "default": "" |
| 21 | }, |
| 22 | "maxlength": { |
| 23 | "type": "number", |
| 24 | "default": "" |
| 25 | }, |
| 26 | "label": { |
| 27 | "type": "string", |
| 28 | "default": "", |
| 29 | "jfb": { |
| 30 | "shortcode": true |
| 31 | } |
| 32 | }, |
| 33 | "name": { |
| 34 | "type": "string", |
| 35 | "default": "field_name" |
| 36 | }, |
| 37 | "desc": { |
| 38 | "type": "string", |
| 39 | "default": "", |
| 40 | "jfb": { |
| 41 | "shortcode": true |
| 42 | } |
| 43 | }, |
| 44 | "default": { |
| 45 | "type": "string", |
| 46 | "default": "" |
| 47 | }, |
| 48 | "placeholder": { |
| 49 | "type": "string", |
| 50 | "default": "" |
| 51 | }, |
| 52 | "required": { |
| 53 | "type": "boolean", |
| 54 | "default": false |
| 55 | }, |
| 56 | "add_prev": { |
| 57 | "type": "boolean", |
| 58 | "default": false |
| 59 | }, |
| 60 | "prev_label": { |
| 61 | "type": "string", |
| 62 | "default": "", |
| 63 | "jfb": { |
| 64 | "shortcode": true |
| 65 | } |
| 66 | }, |
| 67 | "visibility": { |
| 68 | "type": "string", |
| 69 | "default": "" |
| 70 | }, |
| 71 | "class_name": { |
| 72 | "type": "string", |
| 73 | "default": "" |
| 74 | }, |
| 75 | "className": { |
| 76 | "type": "string", |
| 77 | "default": "" |
| 78 | } |
| 79 | }, |
| 80 | "usesContext": [ |
| 81 | "jet-forms/repeater-field--name" |
| 82 | ] |
| 83 | } |