block.json
118 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 | "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>", |
| 16 | "attributes": { |
| 17 | "generator_numbers_min": { |
| 18 | "type": "number", |
| 19 | "default": "" |
| 20 | }, |
| 21 | "generator_numbers_max": { |
| 22 | "type": "number", |
| 23 | "default": "" |
| 24 | }, |
| 25 | "generator_numbers_step": { |
| 26 | "type": "number", |
| 27 | "default": "" |
| 28 | }, |
| 29 | "glossary_id": { |
| 30 | "type": "string", |
| 31 | "default": "" |
| 32 | }, |
| 33 | "switch_on_change": { |
| 34 | "type": "boolean", |
| 35 | "default": false |
| 36 | }, |
| 37 | "field_options_from": { |
| 38 | "type": "string", |
| 39 | "default": "manual_input" |
| 40 | }, |
| 41 | "field_options": { |
| 42 | "type": "array", |
| 43 | "default": [] |
| 44 | }, |
| 45 | "field_options_post_type": { |
| 46 | "type": "string", |
| 47 | "default": "post" |
| 48 | }, |
| 49 | "field_options_tax": { |
| 50 | "type": "string", |
| 51 | "default": "category" |
| 52 | }, |
| 53 | "field_options_key": { |
| 54 | "type": "string", |
| 55 | "default": "" |
| 56 | }, |
| 57 | "generator_function": { |
| 58 | "type": "string", |
| 59 | "default": "" |
| 60 | }, |
| 61 | "generator_field": { |
| 62 | "type": "string", |
| 63 | "default": "" |
| 64 | }, |
| 65 | "calculated_value_from_key": { |
| 66 | "type": "string", |
| 67 | "default": "" |
| 68 | }, |
| 69 | "value_from_key": { |
| 70 | "type": "string", |
| 71 | "default": "" |
| 72 | }, |
| 73 | "label": { |
| 74 | "type": "string", |
| 75 | "default": "" |
| 76 | }, |
| 77 | "name": { |
| 78 | "type": "string", |
| 79 | "default": "field_name" |
| 80 | }, |
| 81 | "desc": { |
| 82 | "type": "string", |
| 83 | "default": "" |
| 84 | }, |
| 85 | "default": { |
| 86 | "type": "string", |
| 87 | "default": "" |
| 88 | }, |
| 89 | "placeholder": { |
| 90 | "type": "string", |
| 91 | "default": "" |
| 92 | }, |
| 93 | "required": { |
| 94 | "type": "boolean", |
| 95 | "default": false |
| 96 | }, |
| 97 | "add_prev": { |
| 98 | "type": "boolean", |
| 99 | "default": false |
| 100 | }, |
| 101 | "prev_label": { |
| 102 | "type": "string", |
| 103 | "default": "" |
| 104 | }, |
| 105 | "visibility": { |
| 106 | "type": "string", |
| 107 | "default": "" |
| 108 | }, |
| 109 | "class_name": { |
| 110 | "type": "string", |
| 111 | "default": "" |
| 112 | }, |
| 113 | "className": { |
| 114 | "type": "string", |
| 115 | "default": "" |
| 116 | } |
| 117 | } |
| 118 | } |