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