attributes.js
39 lines
| 1 | /** |
| 2 | * Block Attributes |
| 3 | */ |
| 4 | const blockAttributes = { |
| 5 | id: { |
| 6 | type: 'number', |
| 7 | default: 0, |
| 8 | }, |
| 9 | prevId: { |
| 10 | type: 'number', |
| 11 | }, |
| 12 | displayStyle: { |
| 13 | type: 'string', |
| 14 | default: 'onpage', |
| 15 | }, |
| 16 | continueButtonTitle: { |
| 17 | type: 'string', |
| 18 | default: '', |
| 19 | }, |
| 20 | showTitle: { |
| 21 | type: 'boolean', |
| 22 | default: true, |
| 23 | }, |
| 24 | showGoal: { |
| 25 | type: 'boolean', |
| 26 | default: true, |
| 27 | }, |
| 28 | contentDisplay: { |
| 29 | type: 'boolean', |
| 30 | default: true, |
| 31 | }, |
| 32 | showContent: { |
| 33 | type: 'string', |
| 34 | default: 'above', |
| 35 | }, |
| 36 | }; |
| 37 | |
| 38 | export default blockAttributes; |
| 39 |