| @@ -9,12 +9,9 @@ | ||
| 9 | 9 | 'block_id' => array( |
| 10 | 10 | 'type' => 'string', |
| 11 | 11 | 'default' => '' |
| 12 | 12 | ), |
| 13 | - 'inputWidth' => [ | |
| 14 | - 'type' => 'number', | |
| 15 | - 'default' => 100 | |
| 16 | - ], | |
| 13 | + | |
| 17 | 14 | 'customName' => [ |
| 18 | 15 | 'type' => 'string', |
| 19 | 16 | 'default' => '', |
| 20 | 17 | ], |
| @@ -25,9 +22,9 @@ | ||
| 25 | 22 | 'helperText' => [ |
| 26 | 23 | 'type' => 'string', |
| 27 | 24 | 'default' => '', |
| 28 | 25 | ], |
| 29 | - 'inputType' => [ | |
| 26 | + 'nameType' => [ | |
| 30 | 27 | 'type' => 'string', |
| 31 | 28 | 'default' => '', |
| 32 | 29 | ], |
| 33 | 30 | 'errorMsg' => [ |
| @@ -34,9 +31,9 @@ | ||
| 34 | 31 | 'type' => 'string', |
| 35 | 32 | 'default' => 'This field is required', |
| 36 | 33 | ], |
| 37 | 34 | |
| 38 | - 'labelName' => [ | |
| 35 | + 'label' => [ | |
| 39 | 36 | 'type' => 'string', |
| 40 | 37 | 'default' => 'Message' |
| 41 | 38 | ], |
| 42 | 39 | 'isRequired' => [ |
| @@ -54,8 +51,16 @@ | ||
| 54 | 51 | Range::get_attribute( [ |
| 55 | 52 | 'attributeName' => 'textAreaRow', |
| 56 | 53 | 'isResponsive' => false, |
| 57 | 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' => '%', | |
| 58 | 63 | ] ), |
| 59 | 64 | ); |
| 60 | 65 | |
| 61 | 66 | return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() ); |