[],
'multiple' => false,
// Select2 library options
'select2options' => [],
// the lockedOptions array can be passed option keys. The passed option keys will be non-deletable.
'lockedOptions' => [],
// the query arguments array can be passed,
'query_args' => array(),
];
}
/**
* Render select2 control output in the editor.
*
* Used to generate the control HTML in the editor using Underscore JS
* template. The variables for the class are available using `data` JS
* object.
* @since 5.8.0
* @access public
*/
public function content_template() {
$control_uid = $this->get_control_uid();
?>
<# } #>
wp_create_nonce('upk_dynamic_select'),
'action' => 'upk_dynamic_select_input_data',
'ajax_url' => admin_url('admin-ajax.php')
];
/**
* Ship the control view inline, right after Elementor's own editor
* script, instead of as a separate file.
*
* As a separate file it is printed after the editor loader (which
* calls elementor.start()), and on some sites the tag never runs at
* all: optimizers, CDNs or a stray crossorigin attribute can block
* or rewrite the request. The control then falls back to a plain
*