Skip to content

Commit 982f182

Browse files
Group Control - advanced example using fields_options (#304)
1 parent decd163 commit 982f182

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/editor-controls/group-control.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,15 @@ class Elementor_Test_Widget extends \Elementor\Widget_Base {
111111
$this->add_group_control(
112112
\Elementor\Group_Control_Border::get_type(),
113113
[
114-
'name' => 'some_border',
115-
'label' => __( 'Box Border', 'textdomain' ),
114+
'name' => 'box_border',
115+
'label' => esc_html__( 'Box Border', 'textdomain' ),
116116
'fields_options' => [
117117
'border' => [
118-
'label' => __( 'Box Border Type', 'textdomain' ),
118+
'label' => esc_html__( 'Box Border Type', 'textdomain' ),
119119
'default' => 'solid',
120120
],
121121
'width' => [
122-
'label' => __( 'Box Border Width', 'textdomain' ),
122+
'label' => esc_html__( 'Box Border Width', 'textdomain' ),
123123
'default' => [
124124
'top' => '1',
125125
'right' => '2',
@@ -129,7 +129,7 @@ class Elementor_Test_Widget extends \Elementor\Widget_Base {
129129
],
130130
],
131131
'color' => [
132-
'label' => __( 'Box Border Color', 'textdomain' ),
132+
'label' => esc_html__( 'Box Border Color', 'textdomain' ),
133133
'default' => '#D4D4D4',
134134
],
135135
],

0 commit comments

Comments
 (0)