Prints a single input template.
Description
See also
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
Version | Description |
---|---|
1.0.0 | Introduced. |