elementor choose control

Solutions on MaxInterview for elementor choose control by the best coders in the world

showing results for - "elementor choose control"
Juan Sebastián
26 Aug 2018
1$this->add_control(
2			'text_align',
3			[
4				'label' => __( 'Alignment', 'plugin-domain' ),
5				'type' => \Elementor\Controls_Manager::CHOOSE,
6				'options' => [
7					'left' => [
8						'title' => __( 'Left', 'plugin-domain' ),
9						'icon' => 'fa fa-align-left',
10					],
11					'center' => [
12						'title' => __( 'Center', 'plugin-domain' ),
13						'icon' => 'fa fa-align-center',
14					],
15					'right' => [
16						'title' => __( 'Right', 'plugin-domain' ),
17						'icon' => 'fa fa-align-right',
18					],
19				],
20				'default' => 'center',
21				'toggle' => true,
22			]
23		);