true,
'clear_on_focus' => true,
);
}
/**
* @return array
*/
protected function extra_field_opts() {
return array(
'max' => '5',
);
}
/**
* @param string $name
*
* @return void
*/
public function show_on_form_builder( $name = '' ) {
$size = FrmField::get_option( $this->field, 'size' );
$max = FrmField::get_option( $this->field, 'max' );
$html_atts = array(
'name' => $this->html_name( $name ),
'id' => $this->html_id(),
'rows' => $max,
'class' => 'dyn_default_value',
'placeholder' => FrmField::get_option( $this->field, 'placeholder' ),
);
echo '';
}
protected function prepare_display_value( $value, $atts ) {
FrmFieldsHelper::run_wpautop( $atts, $value );
return $value;
}
/**
* @since 6.0
*
* @param array $field
* @param string $default_name
* @param mixed $default_value
*
* @return void
*/
public function show_default_value_field( $field, $default_name, $default_value ) {
include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/textarea-default-value-field.php';
}
/**
* @param array $args
* @param array $shortcode_atts
*
* @return string
*/
public function front_field_input( $args, $shortcode_atts ) {
$input_html = $this->get_field_input_html_hook( $this->field );
$rows = $this->field['max'] ? 'rows="' . esc_attr( $this->field['max'] ) . '" ' : '';
// phpcs:disable Generic.WhiteSpace.ScopeIndent
return '';
// phpcs:enable Generic.WhiteSpace.ScopeIndent
}
}