startControlsSection( 'section_spacer', [ 'label' => __('Spacer'), ] ); $this->addResponsiveControl( 'space', [ 'label' => __('Space'), 'type' => ControlsManager::SLIDER, 'default' => [ 'size' => 50, ], 'size_units' => ['px', 'vh', 'em'], 'range' => [ 'px' => [ 'min' => 10, 'max' => 600, ], 'em' => [ 'min' => 0.1, 'max' => 20, ], ], 'selectors' => [ '{{WRAPPER}} .elementor-spacer-inner' => 'height: {{SIZE}}{{UNIT}};', ], ] ); $this->addControl( 'view', [ 'label' => __('View'), 'type' => ControlsManager::HIDDEN, 'default' => 'traditional', ] ); $this->endControlsSection(); } /** * Render spacer widget output on the frontend. * * Written in PHP and used to generate the final HTML. * * @since 1.0.0 * @access protected */ protected function render() { ?>