attributes.js in Smart Post – Post Grid, Post Carousel, Post Slider Gutenberg Blocks for Blog & News 4.0.8, at src/blocks/buttons/attributes.js
| 1 | export const buttonsAttributes = { |
| 2 | uniqueId: { |
| 3 | type: "string", |
| 4 | default: "", |
| 5 | }, |
| 6 | innerBlockId: { |
| 7 | type: "string", |
| 8 | default: "", |
| 9 | }, |
| 10 | dynamicCss: { |
| 11 | type: "string", |
| 12 | }, |
| 13 | additionalCssClass: { |
| 14 | type: "string", |
| 15 | }, |
| 16 | fullWidthBtnEnable: { |
| 17 | type: "boolean", |
| 18 | default: false, |
| 19 | }, |
| 20 | buttonGap: { |
| 21 | type: "object", |
| 22 | default: { |
| 23 | device: { |
| 24 | Desktop: 16, |
| 25 | Tablet: "", |
| 26 | Mobile: "", |
| 27 | }, |
| 28 | unit: { |
| 29 | Desktop: "px", |
| 30 | Tablet: "px", |
| 31 | Mobile: "px", |
| 32 | }, |
| 33 | }, |
| 34 | }, |
| 35 | buttonsMargin: { |
| 36 | type: "object", |
| 37 | default: { |
| 38 | device: { |
| 39 | Desktop: { |
| 40 | top: "0", |
| 41 | right: "0", |
| 42 | bottom: "15", |
| 43 | left: "0", |
| 44 | }, |
| 45 | Tablet: { |
| 46 | top: "", |
| 47 | right: "", |
| 48 | bottom: "", |
| 49 | left: "", |
| 50 | }, |
| 51 | Mobile: { |
| 52 | top: "", |
| 53 | right: "", |
| 54 | bottom: "", |
| 55 | left: "", |
| 56 | }, |
| 57 | }, |
| 58 | unit: { |
| 59 | Desktop: "px", |
| 60 | Tablet: "px", |
| 61 | Mobile: "px", |
| 62 | }, |
| 63 | allChange: false, |
| 64 | }, |
| 65 | }, |
| 66 | |
| 67 | buttonsHorizontalAlignment: { |
| 68 | type: "string", |
| 69 | default: "flex-start", |
| 70 | }, |
| 71 | buttonsVerticalAlignment: { |
| 72 | type: "string", |
| 73 | default: "flex-start", |
| 74 | }, |
| 75 | buttonsAlignment: { |
| 76 | type: "string", |
| 77 | default: "horizontal", |
| 78 | }, |
| 79 | }; |
| 80 |