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-checkbox / attributes.php

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

56 lines 871 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' => array(
9 'type' => 'string',
10 'default' => ''
11 ),
12 'label' => [
13 'type' => 'string',
14 'default' => '',
15 ],
16 'inputWidth' => [
17 'type' => 'number',
18 'default' => 100
19 ],
20 'errorMsg' => [
21 'type' => 'string',
22 'default' => 'This field is required',
23 ],
24 'helperText' => [
25 'type' => 'string',
26 'default' => '',
27 ],
28 'inputType' => [
29 'type' => 'string',
30 'default' => ''
31 ],
32 'name' => [
33 'type' => 'string',
34 'default' => ''
35 ],
36 'isRequired' => [
37 'type' => 'boolean',
38 'default' => false,
39 ],
40 'isChecked' => [
41 'type' => 'boolean',
42 'default' => false,
43 ],
44 'placeholder' => [
45 'type' => 'string',
46 'default' => 'Enter your message'
47 ],
48 ];
49
50 $attributes = array_merge(
51 $attributes,
52 );
53
54 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
55
56