PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.9.1
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.9.1
2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 All 80 releases
ablocks / includes / blocks / form-radio / attributes.php

attributes.php in aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder 2.9.1, at includes/blocks/form-radio/attributes.php

62 lines 936 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit;
5 }
6
7 $attributes = [
8 'block_id' => [
9 'type' => 'string',
10 'default' => ''
11 ],
12 'inputType' => [
13 'type' => 'string',
14 'default' => ''
15 ],
16 'optionWidth' => [
17 'type' => 'number',
18 'default' => 50
19 ],
20 'label' => [
21 'type' => 'string',
22 'default' => 'What\'s your favorite programming lang?'
23 ],
24
25 'helperText' => [
26 'type' => 'string',
27 'default' => '',
28 ],
29 'inputWidth' => [
30 'type' => 'number',
31 'default' => 100
32 ],
33 'name' => [
34 'type' => 'string',
35 'default' => '',
36 ],
37 'isRequired' => [
38 'type' => 'boolean',
39 'default' => true,
40 ],
41 'errorMsg' => [
42 'type' => 'string',
43 'default' => 'This field is required'
44 ],
45 'radioArr' => [
46 'type' => 'array',
47 'default' => [
48 [
49 'id' => 1,
50 'value' => 'Javascript',
51 ],
52 ]
53 ]
54 ];
55
56 $attributes = array_merge(
57 $attributes,
58 );
59
60 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
61
62