# MultiValue Controls

Elementor Core Basic

MultiValue controls are used to return more than a single value. Each value in the multivalue control will be returned as an item in a key => value array.

# Using MultiValue Controls

The following controls are included in Elementor:

  • URL – A URL field with a button to open the link in an external tab.
  • Media – A media chooser section based on the WordPress media library.
  • Image Dimensions – A component with image width, input, image height input and an apply button.
  • Icons Control – An icon chooser (Font Icons or SVG files) based on the Elementor icon library.
  • Text Shadow – Input fields for horizontal shadow, vertical shadow, shadow blur and shadow color.
  • Box Shadow – Input fields for horizontal shadow, vertical shadow, shadow blur, shadow spread and shadow color.

# Extending Multi Value Controls

To create your own multivalue control, you need to extend the \Elementor\Control_Base_Multiple abstract class:

 


class Elementor_Test_Control extends \Elementor\Control_Base_Multiple {
}
1
2