Elementor\Widget_Alert::_register_controls PHP Method

_register_controls() protected method

protected _register_controls ( )
    protected function _register_controls()
    {
        $this->start_controls_section('section_alert', ['label' => __('Alert', 'elementor')]);
        $this->add_control('alert_type', ['label' => __('Type', 'elementor'), 'type' => Controls_Manager::SELECT, 'default' => 'info', 'options' => ['info' => __('Info', 'elementor'), 'success' => __('Success', 'elementor'), 'warning' => __('Warning', 'elementor'), 'danger' => __('Danger', 'elementor')]]);
        $this->add_control('alert_title', ['label' => __('Title & Description', 'elementor'), 'type' => Controls_Manager::TEXT, 'placeholder' => __('Your Title', 'elementor'), 'default' => __('This is Alert', 'elementor'), 'label_block' => true]);
        $this->add_control('alert_description', ['label' => __('Content', 'elementor'), 'type' => Controls_Manager::TEXTAREA, 'placeholder' => __('Your Description', 'elementor'), 'default' => __('I am description. Click edit button to change this text.', 'elementor'), 'separator' => 'none', 'show_label' => false]);
        $this->add_control('show_dismiss', ['label' => __('Dismiss Button', 'elementor'), 'type' => Controls_Manager::SELECT, 'default' => 'show', 'options' => ['show' => __('Show', 'elementor'), 'hide' => __('Hide', 'elementor')]]);
        $this->add_control('view', ['label' => __('View', 'elementor'), 'type' => Controls_Manager::HIDDEN, 'default' => 'traditional']);
        $this->end_controls_section();
        $this->start_controls_section('section_type', ['label' => __('Alert Type', 'elementor'), 'tab' => Controls_Manager::TAB_STYLE]);
        $this->add_control('background', ['label' => __('Background Color', 'elementor'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .elementor-alert' => 'background-color: {{VALUE}};']]);
        $this->add_control('border_color', ['label' => __('Border Color', 'elementor'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .elementor-alert' => 'border-color: {{VALUE}};']]);
        $this->add_control('border_left-width', ['label' => __('Left Border Width', 'elementor'), 'type' => Controls_Manager::SLIDER, 'range' => ['px' => ['min' => 0, 'max' => 100]], 'selectors' => ['{{WRAPPER}} .elementor-alert' => 'border-left-width: {{SIZE}}{{UNIT}};']]);
        $this->end_controls_section();
        $this->start_controls_section('section_title', ['label' => __('Title', 'elementor'), 'tab' => Controls_Manager::TAB_STYLE]);
        $this->add_control('title_color', ['label' => __('Text Color', 'elementor'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .elementor-alert-title' => 'color: {{VALUE}};']]);
        $this->add_group_control(Group_Control_Typography::get_type(), ['name' => 'alert_title', 'selector' => '{{WRAPPER}} .elementor-alert-title', 'scheme' => Scheme_Typography::TYPOGRAPHY_1]);
        $this->end_controls_section();
        $this->start_controls_section('section_description', ['label' => __('Description', 'elementor'), 'tab' => Controls_Manager::TAB_STYLE]);
        $this->add_control('description_color', ['label' => __('Text Color', 'elementor'), 'type' => Controls_Manager::COLOR, 'selectors' => ['{{WRAPPER}} .elementor-alert-description' => 'color: {{VALUE}};']]);
        $this->add_group_control(Group_Control_Typography::get_type(), ['name' => 'alert_description', 'selector' => '{{WRAPPER}} .elementor-alert-description', 'scheme' => Scheme_Typography::TYPOGRAPHY_3]);
        $this->end_controls_section();
    }