Skip to content

Commit

Permalink
Group Control - advanced example using fields_options (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
rami-elementor authored Dec 23, 2024
1 parent decd163 commit 982f182
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/editor-controls/group-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ class Elementor_Test_Widget extends \Elementor\Widget_Base {
$this->add_group_control(
\Elementor\Group_Control_Border::get_type(),
[
'name' => 'some_border',
'label' => __( 'Box Border', 'textdomain' ),
'name' => 'box_border',
'label' => esc_html__( 'Box Border', 'textdomain' ),
'fields_options' => [
'border' => [
'label' => __( 'Box Border Type', 'textdomain' ),
'label' => esc_html__( 'Box Border Type', 'textdomain' ),
'default' => 'solid',
],
'width' => [
'label' => __( 'Box Border Width', 'textdomain' ),
'label' => esc_html__( 'Box Border Width', 'textdomain' ),
'default' => [
'top' => '1',
'right' => '2',
Expand All @@ -129,7 +129,7 @@ class Elementor_Test_Widget extends \Elementor\Widget_Base {
],
],
'color' => [
'label' => __( 'Box Border Color', 'textdomain' ),
'label' => esc_html__( 'Box Border Color', 'textdomain' ),
'default' => '#D4D4D4',
],
],
Expand Down

0 comments on commit 982f182

Please sign in to comment.