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

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

63 lines 1022 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 use ABlocks\Controls\Range;
7
8 $attributes = [
9 'block_id' => array(
10 'type' => 'string',
11 'default' => ''
12 ),
13 'inputWidth' => [
14 'type' => 'number',
15 'default' => 100
16 ],
17 'customName' => [
18 'type' => 'string',
19 'default' => '',
20 ],
21 'name' => [
22 'type' => 'string',
23 'default' => ''
24 ],
25 'helperText' => [
26 'type' => 'string',
27 'default' => '',
28 ],
29 'inputType' => [
30 'type' => 'string',
31 'default' => '',
32 ],
33 'errorMsg' => [
34 'type' => 'string',
35 'default' => 'This field is required',
36 ],
37
38 'labelName' => [
39 'type' => 'string',
40 'default' => 'Message'
41 ],
42 'isRequired' => [
43 'type' => 'boolean',
44 'default' => true
45 ],
46 'placeholder' => [
47 'type' => 'string',
48 'default' => 'Enter your message'
49 ]
50 ];
51
52 $attributes = array_merge(
53 $attributes,
54 Range::get_attribute( [
55 'attributeName' => 'textAreaRow',
56 'isResponsive' => false,
57 'defaultValue' => 5,
58 ] ),
59 );
60
61 return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
62
63