block.json
78 lines
| 1 | { |
| 2 | "apiVersion": 2, |
| 3 | "name": "jet-forms/range-field", |
| 4 | "category": "jet-form-builder-fields", |
| 5 | "keywords": [ |
| 6 | "jetformbuilder", |
| 7 | "field", |
| 8 | "range" |
| 9 | ], |
| 10 | "textdomain": "jet-form-builder", |
| 11 | "supports": { |
| 12 | "customClassName": false, |
| 13 | "html": false |
| 14 | }, |
| 15 | "title": "Range 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\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M60 16H4C2.89543 16 2 16.8954 2 18V38C2 39.1046 2.89543 40 4 40H60C61.1046 40 62 39.1046 62 38V18C62 16.8954 61.1046 16 60 16ZM4 14C1.79086 14 0 15.7909 0 18V38C0 40.2091 1.79086 42 4 42H60C62.2091 42 64 40.2091 64 38V18C64 15.7909 62.2091 14 60 14H4Z\" fill=\"#162B40\"/><rect x=\"12\" y=\"28\" width=\"43\" height=\"2\" fill=\"#162B40\"/><circle cx=\"12\" cy=\"29\" r=\"5\" fill=\"#4EFEC3\" stroke=\"#162B40\" stroke-width=\"2\"/><circle cx=\"55\" cy=\"29\" r=\"2\" fill=\"#162B40\" stroke=\"#162B40\" stroke-width=\"2\"/><circle cx=\"37\" cy=\"29\" r=\"5\" fill=\"#4EFEC3\" stroke=\"#162B40\" stroke-width=\"2\"/></svg>", |
| 17 | "attributes": { |
| 18 | "min": { |
| 19 | "type": "number", |
| 20 | "default": "" |
| 21 | }, |
| 22 | "max": { |
| 23 | "type": "number", |
| 24 | "default": "" |
| 25 | }, |
| 26 | "step": { |
| 27 | "type": "number", |
| 28 | "default": "" |
| 29 | }, |
| 30 | "prefix": { |
| 31 | "type": "string", |
| 32 | "default": "" |
| 33 | }, |
| 34 | "suffix": { |
| 35 | "type": "string", |
| 36 | "default": "" |
| 37 | }, |
| 38 | "label": { |
| 39 | "type": "string", |
| 40 | "default": "" |
| 41 | }, |
| 42 | "name": { |
| 43 | "type": "string", |
| 44 | "default": "field_name" |
| 45 | }, |
| 46 | "desc": { |
| 47 | "type": "string", |
| 48 | "default": "" |
| 49 | }, |
| 50 | "default": { |
| 51 | "type": "string", |
| 52 | "default": "" |
| 53 | }, |
| 54 | "add_prev": { |
| 55 | "type": "boolean", |
| 56 | "default": false |
| 57 | }, |
| 58 | "prev_label": { |
| 59 | "type": "string", |
| 60 | "default": "" |
| 61 | }, |
| 62 | "visibility": { |
| 63 | "type": "string", |
| 64 | "default": "" |
| 65 | }, |
| 66 | "class_name": { |
| 67 | "type": "string", |
| 68 | "default": "" |
| 69 | }, |
| 70 | "className": { |
| 71 | "type": "string", |
| 72 | "default": "" |
| 73 | } |
| 74 | }, |
| 75 | "usesContext": [ |
| 76 | "jet-forms/repeater-field--name" |
| 77 | ] |
| 78 | } |