PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 1.8.2
GenerateBlocks v1.8.2
trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.3.0
generateblocks / src / blocks / button / attributes.js
generateblocks / src / blocks / button Last commit date
components 2 years ago css 2 years ago attributes.js 3 years ago block.js 2 years ago deprecated.js 3 years ago edit.js 2 years ago editor.scss 3 years ago save.js 3 years ago
attributes.js
65 lines
1 /* eslint-disable no-undef */
2 export default {
3 uniqueId: {
4 type: 'string',
5 default: '',
6 },
7 anchor: {
8 type: 'string',
9 default: '',
10 },
11 url: {
12 type: 'string',
13 source: 'attribute',
14 selector: '.gb-button',
15 attribute: 'href',
16 },
17 hasUrl: {
18 type: 'boolean',
19 },
20 target: {
21 type: 'boolean',
22 },
23 relNoFollow: {
24 type: 'boolean',
25 },
26 relSponsored: {
27 type: 'boolean',
28 },
29 text: {
30 type: 'string',
31 source: 'html',
32 selector: '.gb-button-text',
33 default: 'Button',
34 },
35 ariaLabel: {
36 type: 'string',
37 default: generateBlocksDefaults.button.ariaLabel,
38 },
39 blockVersion: {
40 type: 'number',
41 },
42 hasButtonContainer: {
43 type: 'boolean',
44 default: false,
45 },
46 variantRole: {
47 type: 'string',
48 default: '',
49 },
50 buttonType: {
51 type: 'string',
52 default: 'link',
53 },
54 // deprecated since 1.2.0
55 elementId: {
56 type: 'string',
57 default: '',
58 },
59 cssClasses: {
60 type: 'string',
61 default: '',
62 },
63 };
64 /* eslint-enable no-undef */
65