| @@ -4,8 +4,9 @@ | ||
| 4 | 4 | use ABlocks\Controls\Icon; |
| 5 | 5 | use ABlocks\Controls\Border; |
| 6 | 6 | use ABlocks\Controls\Range; |
| 7 | 7 | use ABlocks\Components\ButtonGroup; |
| 8 | + | |
| 8 | 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | 10 | exit; |
| 10 | 11 | } |
| 11 | 12 | |
| @@ -13,12 +14,12 @@ | ||
| 13 | 14 | 'block_id' => array( |
| 14 | 15 | 'type' => 'string', |
| 15 | 16 | 'default' => '' |
| 16 | 17 | ), |
| 17 | - 'inputWidth' => [ | |
| 18 | - 'type' => 'number', | |
| 19 | - 'default' => 100 | |
| 20 | - ], | |
| 18 | + // 'inputWidth' => [ | |
| 19 | + // 'type' => 'number', | |
| 20 | + // 'default' => 100 | |
| 21 | + // ], | |
| 21 | 22 | 'customName' => [ |
| 22 | 23 | 'type' => 'string', |
| 23 | 24 | 'default' => '', |
| 24 | 25 | ], |
| @@ -85,8 +86,16 @@ | ||
| 85 | 86 | Range::get_attribute( [ |
| 86 | 87 | 'attributeName' => 'inputIconSpace', |
| 87 | 88 | 'isResponsive' => false, |
| 88 | 89 | 'defaultValue' => 38, |
| 90 | + ] ), | |
| 91 | + Range::get_attribute( [ | |
| 92 | + 'attributeName' => 'inputWidth', | |
| 93 | + 'attributeObjectKey' => 'value', | |
| 94 | + 'isResponsive' => true, | |
| 95 | + 'defaultValue' => 100, | |
| 96 | + 'hasUnit' => true, | |
| 97 | + 'unitDefaultValue' => '%', | |
| 89 | 98 | ] ), |
| 90 | 99 | ); |
| 91 | 100 | |
| 92 | 101 | return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() ); |