PluginProbe
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management / 1.6.1
SureDonation – Donation Forms, Fundraising Campaigns & Donor Management v1.6.1
1.6.1 1.6.0 1.5.1 1.5.0 1.4.0 1.3.0 trunk 0.0.1 1.0.0 1.1.0 1.1.1 1.1.2 1.2.0
suredonation / inc / blocks / donation-amount / block.json

block.json in SureDonation – Donation Forms, Fundraising Campaigns & Donor Management 1.6.1, at inc/blocks/donation-amount/block.json

106 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "suredonation/donation-amount",
5 "title": "Donation Amount",
6 "description": "Preset donation amount options plus an optional custom amount field.",
7 "category": "suredonation",
8 "keywords": [ "donation", "amount", "radio", "choice", "preset", "custom" ],
9 "textdomain": "suredonation",
10 "supports": {
11 "reusable": false,
12 "html": false,
13 "multiple": false
14 },
15 "style": "suredonation-donation-form",
16 "example": {
17 "attributes": {
18 "preview": true
19 }
20 },
21 "attributes": {
22 "preview": {
23 "type": "boolean",
24 "default": false
25 },
26 "block_id": {
27 "type": "string"
28 },
29 "required": {
30 "type": "boolean",
31 "default": true
32 },
33 "fieldWidth": {
34 "type": "number",
35 "default": 100
36 },
37 "label": {
38 "type": "string",
39 "default": "Select Amount"
40 },
41 "help": {
42 "type": "string",
43 "default": ""
44 },
45 "errorMsg": {
46 "type": "string",
47 "default": ""
48 },
49 "options": {
50 "type": "array",
51 "default": [
52 { "label": "25", "value": "25" },
53 { "label": "50", "value": "50" },
54 { "label": "100", "value": "100" },
55 { "label": "250", "value": "250" }
56 ]
57 },
58 "defaultValue": {
59 "type": "string",
60 "default": ""
61 },
62 "showValues": {
63 "type": "boolean",
64 "default": false
65 },
66 "layout": {
67 "type": "string",
68 "default": "horizontal",
69 "enum": [ "horizontal", "vertical" ]
70 },
71 "choiceWidth": {
72 "type": "string",
73 "default": "50",
74 "enum": [ "100", "75", "66.66", "50", "33.33", "25" ]
75 },
76 "formId": {
77 "type": "number",
78 "default": 0
79 },
80 "slug": {
81 "type": "string",
82 "default": ""
83 },
84 "className": {
85 "type": "string",
86 "default": ""
87 },
88 "customClasses": {
89 "type": "string",
90 "default": ""
91 },
92 "allowCustomAmount": {
93 "type": "boolean",
94 "default": true
95 },
96 "customAmountMin": {
97 "type": "number",
98 "default": 0
99 },
100 "customAmountMax": {
101 "type": "number",
102 "default": 0
103 }
104 }
105 }
106