A Textarea input field
Parameter | Type | Value |
---|---|---|
type | required |
Predefined String (textarea) |
title | optional |
String |
desc | optional |
String |
placeholder | optional |
String |
std | optional |
String |
tab | optional |
String(style) |
section | optional |
String |
Always return string
'addon_textarea' => array(
'type' => 'textarea',
'title' => __('Textarea Field','your-textdomain'),
'placeholder' => __('Textarea Placeholder','your-textdomain'),
'std' => 'Textarea Default Value'
)
Not Support selector
parameters for Textarea case.
Inside the rander()
method-
echo '<div>'.$data['settings']['addon_textarea'].'</div>';
Inside the getTemplate()
method-
<div>{{data.addon_textarea}}</div>