block.json
132 lines
| 1 | { |
| 2 | "apiVersion": 2, |
| 3 | "name": "jet-forms/checkbox-field", |
| 4 | "category": "jet-form-builder-fields", |
| 5 | "keywords": [ |
| 6 | "jetformbuilder", |
| 7 | "field", |
| 8 | "checkbox" |
| 9 | ], |
| 10 | "textdomain": "jet-form-builder", |
| 11 | "supports": { |
| 12 | "customClassName": false, |
| 13 | "html": false |
| 14 | }, |
| 15 | "title": "Checkbox Field", |
| 16 | "description": "", |
| 17 | "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=\"1\" y=\"6\" width=\"62\" height=\"52\" rx=\"3\" fill=\"white\" stroke=\"#162B40\" stroke-width=\"2\"/><rect x=\"7\" y=\"36\" width=\"16\" height=\"16\" rx=\"3\" fill=\"#6F8BFF\" stroke=\"#162B40\" stroke-width=\"2\"/><rect x=\"28\" y=\"41\" width=\"30\" height=\"2\" rx=\"1\" fill=\"#162B40\"/><path d=\"M28 46C28 45.4477 28.4477 45 29 45H48C48.5523 45 49 45.4477 49 46C49 46.5523 48.5523 47 48 47H29C28.4477 47 28 46.5523 28 46Z\" fill=\"#162B40\"/><rect x=\"28\" y=\"17\" width=\"30\" height=\"2\" rx=\"1\" fill=\"#162B40\"/><path d=\"M28 22C28 21.4477 28.4477 21 29 21H48C48.5523 21 49 21.4477 49 22C49 22.5523 48.5523 23 48 23H29C28.4477 23 28 22.5523 28 22Z\" fill=\"#162B40\"/><path d=\"M11 44L14 47L19 41\" stroke=\"#162B40\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/><rect x=\"7\" y=\"12\" width=\"16\" height=\"16\" rx=\"3\" fill=\"white\" stroke=\"#162B40\" stroke-width=\"2\"/></svg>", |
| 18 | "attributes": { |
| 19 | "custom_item_template": { |
| 20 | "type": "boolean", |
| 21 | "default": false |
| 22 | }, |
| 23 | "custom_item_template_id": { |
| 24 | "type": "string", |
| 25 | "default": "" |
| 26 | }, |
| 27 | "generator_numbers_min": { |
| 28 | "type": "number", |
| 29 | "default": "" |
| 30 | }, |
| 31 | "generator_numbers_max": { |
| 32 | "type": "number", |
| 33 | "default": "" |
| 34 | }, |
| 35 | "generator_numbers_step": { |
| 36 | "type": "number", |
| 37 | "default": "" |
| 38 | }, |
| 39 | "glossary_id": { |
| 40 | "type": "string", |
| 41 | "default": "" |
| 42 | }, |
| 43 | "field_options_from": { |
| 44 | "type": "string", |
| 45 | "default": "manual_input" |
| 46 | }, |
| 47 | "field_options": { |
| 48 | "type": "array", |
| 49 | "default": [] |
| 50 | }, |
| 51 | "field_options_post_type": { |
| 52 | "type": "string", |
| 53 | "default": "post" |
| 54 | }, |
| 55 | "field_options_tax": { |
| 56 | "type": "string", |
| 57 | "default": "category" |
| 58 | }, |
| 59 | "field_options_key": { |
| 60 | "type": "string", |
| 61 | "default": "" |
| 62 | }, |
| 63 | "generator_function": { |
| 64 | "type": "string", |
| 65 | "default": "" |
| 66 | }, |
| 67 | "generator_field": { |
| 68 | "type": "string", |
| 69 | "default": "" |
| 70 | }, |
| 71 | "calculated_value_from_key": { |
| 72 | "type": "string", |
| 73 | "default": "" |
| 74 | }, |
| 75 | "value_from_key": { |
| 76 | "type": "string", |
| 77 | "default": "" |
| 78 | }, |
| 79 | "label": { |
| 80 | "type": "string", |
| 81 | "default": "", |
| 82 | "jfb": { |
| 83 | "shortcode": true |
| 84 | } |
| 85 | }, |
| 86 | "name": { |
| 87 | "type": "string", |
| 88 | "default": "field_name" |
| 89 | }, |
| 90 | "desc": { |
| 91 | "type": "string", |
| 92 | "default": "", |
| 93 | "jfb": { |
| 94 | "shortcode": true |
| 95 | } |
| 96 | }, |
| 97 | "default": { |
| 98 | "type": "string", |
| 99 | "default": "" |
| 100 | }, |
| 101 | "required": { |
| 102 | "type": "boolean", |
| 103 | "default": false |
| 104 | }, |
| 105 | "add_prev": { |
| 106 | "type": "boolean", |
| 107 | "default": false |
| 108 | }, |
| 109 | "prev_label": { |
| 110 | "type": "string", |
| 111 | "default": "", |
| 112 | "jfb": { |
| 113 | "shortcode": true |
| 114 | } |
| 115 | }, |
| 116 | "visibility": { |
| 117 | "type": "string", |
| 118 | "default": "" |
| 119 | }, |
| 120 | "class_name": { |
| 121 | "type": "string", |
| 122 | "default": "" |
| 123 | }, |
| 124 | "className": { |
| 125 | "type": "string", |
| 126 | "default": "" |
| 127 | } |
| 128 | }, |
| 129 | "usesContext": [ |
| 130 | "jet-forms/repeater-field--name" |
| 131 | ] |
| 132 | } |