| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"version": "0.0.1", |
| 5 |
"name": "tableberg/toggle", |
| 6 |
"allowedBlocks": [ |
| 7 |
"tableberg/table" |
| 8 |
], |
| 9 |
"title": "Toggle for Tableberg", |
| 10 |
"category": "layout", |
| 11 |
"description": "Create a tabbed interface where each tab contains tables with full functionality.", |
| 12 |
"keywords": [ |
| 13 |
"Tabs", |
| 14 |
"Tabbed Interface", |
| 15 |
"Table", |
| 16 |
"Layout" |
| 17 |
], |
| 18 |
"supports": { |
| 19 |
"customClassName": false |
| 20 |
}, |
| 21 |
"attributes": { |
| 22 |
"tabs": { |
| 23 |
"type": "array", |
| 24 |
"default": [ |
| 25 |
"Tab 1", |
| 26 |
"Tab 2", |
| 27 |
"Tab 3" |
| 28 |
] |
| 29 |
}, |
| 30 |
"defaultActiveTabIndex": { |
| 31 |
"type": "number", |
| 32 |
"default": 0 |
| 33 |
}, |
| 34 |
"alignment": { |
| 35 |
"type": "string", |
| 36 |
"default": "left" |
| 37 |
}, |
| 38 |
"gap": { |
| 39 |
"type": "string", |
| 40 |
"default": "0" |
| 41 |
}, |
| 42 |
"tabBorderRadius": { |
| 43 |
"type": "string", |
| 44 |
"default": "var:preset|spacing|5" |
| 45 |
}, |
| 46 |
"activeTabTextColor": { |
| 47 |
"type": "string", |
| 48 |
"default": "white" |
| 49 |
}, |
| 50 |
"activeTabBackgroundColor": { |
| 51 |
"type": "string", |
| 52 |
"default": "#671feb" |
| 53 |
}, |
| 54 |
"inactiveTabTextColor": { |
| 55 |
"type": "string", |
| 56 |
"default": "white" |
| 57 |
}, |
| 58 |
"inactiveTabBackgroundColor": { |
| 59 |
"type": "string", |
| 60 |
"default": "black" |
| 61 |
} |
| 62 |
}, |
| 63 |
"example": {}, |
| 64 |
"viewScript": "file:./frontend.js", |
| 65 |
"editorScript": "file:./index.js", |
| 66 |
"editorStyle": "file:./index.css", |
| 67 |
"style": "file:./index.css", |
| 68 |
"textdomain": "tableberg" |
| 69 |
} |