Autocomplete_With_Button::print_single_input_template()

Prints a single input template.

Description

Source

File: src/modules/access-controls/autocomplete-with-button.php

	protected function print_single_input_template() {
		?>
		<input type="<?php echo esc_attr( $this->type ); ?>"{{{ _.attrs( data.inputAttrs ) }}} value="{{ data.currentLabel }}">
		<input type="hidden" name="{{ data.name }}" value="{{ data.currentValue }}">
		<# if ( data.buttonLabel.length ) { #>
			<button type="button"{{{ _.attrs( data.buttonAttrs ) }}}>{{ data.buttonLabel }}</button>
		<# } #>
		<?php
		$this->print_repeatable_remove_button_template();
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.