Widget_Spacer::_register_controls()
Register spacer widget controls.
Description
Adds different input fields to allow the user to change and customize the widget settings.
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |
Source
includes/widgets/spacer.php
protected function _register_controls() { $this->start_controls_section( 'section_spacer', [ 'label' => __( 'Spacer', 'elementor' ), ] ); $this->add_responsive_control( 'space', [ 'label' => __( 'Space', 'elementor' ), 'type' => Controls_Manager::SLIDER, 'default' => [ 'size' => 50, ], 'range' => [ 'px' => [ 'min' => 10, 'max' => 600, ], ], 'selectors' => [ '{{WRAPPER}} .elementor-spacer-inner' => 'height: {{SIZE}}{{UNIT}};', ], ] ); $this->add_control( 'view', [ 'label' => __( 'View', 'elementor' ), 'type' => Controls_Manager::HIDDEN, 'default' => 'traditional', ] ); $this->end_controls_section(); }