PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.14.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.14.0
2.14.0 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 All 81 releases
← All changes | includes/blocks/form-textarea/attributes.php +67 -0 2.7.7 → 2.14.0 View file →
@@ -1,0 +1,67 @@
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 +
14 + 'customName' => [
15 + 'type' => 'string',
16 + 'default' => '',
17 + ],
18 + 'name' => [
19 + 'type' => 'string',
20 + 'default' => ''
21 + ],
22 + 'helperText' => [
23 + 'type' => 'string',
24 + 'default' => '',
25 + ],
26 + 'nameType' => [
27 + 'type' => 'string',
28 + 'default' => '',
29 + ],
30 + 'errorMsg' => [
31 + 'type' => 'string',
32 + 'default' => 'This field is required',
33 + ],
34 +
35 + 'label' => [
36 + 'type' => 'string',
37 + 'default' => 'Message'
38 + ],
39 + 'isRequired' => [
40 + 'type' => 'boolean',
41 + 'default' => true
42 + ],
43 + 'placeholder' => [
44 + 'type' => 'string',
45 + 'default' => 'Enter your message'
46 + ]
47 +];
48 +
49 +$attributes = array_merge(
50 + $attributes,
51 + Range::get_attribute( [
52 + 'attributeName' => 'textAreaRow',
53 + 'isResponsive' => false,
54 + 'defaultValue' => 5,
55 + ] ),
56 + Range::get_attribute( [
57 + 'attributeName' => 'inputWidth',
58 + 'attributeObjectKey' => 'value',
59 + 'isResponsive' => true,
60 + 'defaultValue' => 100,
61 + 'hasUnit' => true,
62 + 'unitDefaultValue' => '%',
63 + ] ),
64 +);
65 +
66 +return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
67 +