Line | |
---|
1 | { |
---|
2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
---|
3 | "apiVersion": 2, |
---|
4 | "name": "mortgage/form", |
---|
5 | "title": "Mortgage", |
---|
6 | "category": "widgets", |
---|
7 | "icon": "calculator", |
---|
8 | "description": "A block to generate a mortgage calculator form.", |
---|
9 | "supports": { |
---|
10 | "html": true, |
---|
11 | "reusable": true, |
---|
12 | "className": true, |
---|
13 | "color": true |
---|
14 | }, |
---|
15 | "attributes": { |
---|
16 | "currency": { |
---|
17 | "type": "string", |
---|
18 | "default": "$" |
---|
19 | }, |
---|
20 | "showTable": { |
---|
21 | "type": "boolean", |
---|
22 | "default": false |
---|
23 | }, |
---|
24 | "yearSummary": { |
---|
25 | "type": "boolean", |
---|
26 | �� "default": false |
---|
27 | }, |
---|
28 | "type": { |
---|
29 | "enum": ["loan", "rates", "duration"] |
---|
30 | } |
---|
31 | }, |
---|
32 | "styles": [ |
---|
33 | { |
---|
34 | "name": "regular", |
---|
35 | "label": "Default", |
---|
36 | "isDefault": true |
---|
37 | }, |
---|
38 | { "name": "bolded", "label": "Bolded label" }, |
---|
39 | { "name": "modern", "label": "Modern" } |
---|
40 | ], |
---|
41 | "textdomain": "mortgage", |
---|
42 | "editorScript": "file:./build/index.js", |
---|
43 | "editorStyle": "file:./build/index.css", |
---|
44 | "viewScript": "file:./build/frontend.js", |
---|
45 | "style": "file:./build/style-index.css" |
---|
46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.