deprecated
5 years ago
block.js
5 years ago
component.js
5 years ago
heading-toolbar.js
5 years ago
icon.svg
5 years ago
schema.js
5 years ago
style.css
6 years ago
style.css.map
6 years ago
style.scss
5 years ago
schema.js
97 lines
| 1 | import { iconUser, title, baseColor } from "./../_helper/example-data" |
| 2 | |
| 3 | export const schema = { |
| 4 | anchor: { |
| 5 | type: 'string', |
| 6 | source: 'attribute', |
| 7 | attribute: 'id', |
| 8 | selector: '*', |
| 9 | }, |
| 10 | level: { |
| 11 | type: "number", |
| 12 | default: 2 |
| 13 | }, |
| 14 | align: { |
| 15 | type: "string" |
| 16 | }, |
| 17 | titleStyle: { |
| 18 | type: "string", |
| 19 | default: "default" |
| 20 | }, |
| 21 | outerMarginBottom: { |
| 22 | type: "number", |
| 23 | default: 0 |
| 24 | }, |
| 25 | title: { |
| 26 | type: "string", |
| 27 | source: "html", |
| 28 | selector: "span", |
| 29 | default: "" |
| 30 | }, |
| 31 | titleColor: { |
| 32 | type: "string", |
| 33 | default: "#000000" |
| 34 | }, |
| 35 | titleSize: { |
| 36 | type: "number", |
| 37 | default: 2 |
| 38 | }, |
| 39 | titleMarginBottom: { |
| 40 | type: "number", |
| 41 | default: 1 |
| 42 | }, |
| 43 | subText: { |
| 44 | source: "html", |
| 45 | selector: "p", |
| 46 | default: "" |
| 47 | }, |
| 48 | subTextFlag: { |
| 49 | type: "string", |
| 50 | default: "off" |
| 51 | }, |
| 52 | subTextColor: { |
| 53 | type: "string", |
| 54 | default: "#000000" |
| 55 | }, |
| 56 | subTextSize: { |
| 57 | type: "number", |
| 58 | default: 1.2 |
| 59 | }, |
| 60 | fontAwesomeIconBefore: { |
| 61 | type: 'string', |
| 62 | default: '', |
| 63 | }, |
| 64 | fontAwesomeIconAfter: { |
| 65 | type: 'string', |
| 66 | default: '', |
| 67 | }, |
| 68 | fontAwesomeIconColor: { |
| 69 | type: "string", |
| 70 | default: "#000000" |
| 71 | }, |
| 72 | }; |
| 73 | |
| 74 | export const example = { |
| 75 | attributes:{ |
| 76 | anchor: "", |
| 77 | level: 2, |
| 78 | align: "center", |
| 79 | titleStyle: "default", |
| 80 | outerMarginBottom: 0, |
| 81 | title, |
| 82 | titleColor: baseColor, |
| 83 | titleSize: 2, |
| 84 | titleMarginBottom: 1, |
| 85 | subText: title, |
| 86 | subTextFlag: { |
| 87 | type: "string", |
| 88 | default: "on" |
| 89 | }, |
| 90 | subTextColor: baseColor, |
| 91 | subTextSize: 1.2, |
| 92 | fontAwesomeIconBefore: iconUser, |
| 93 | fontAwesomeIconAfter: "", |
| 94 | fontAwesomeIconColor: baseColor, |
| 95 | } |
| 96 | } |
| 97 |