Gravity_Forms\Gravity_Forms\Settings\Fields\Textarea
Source: includes/settings/fields/class-textarea.php:10
Details
- Kind:
class - Namespace:
Gravity_Forms\Gravity_Forms\Settings\Fields - Extends:
Base
Properties
| Property | Type | Description |
|---|---|---|
$type | string | Field type. |
$allow_html | bool | Allow HTML in field value. |
$use_editor | bool | Initialize as Rich Text Editor. |
$rows | int | Number of rows. |
$editor_height | int | Editor height. |
Methods
| Method | Description |
|---|---|
__construct() | Initialize Textarea field. |
markup() | Render field. |
get_editor_class() | Get the CSS classes for the rich text editor. |
do_validation() | Validate posted field value. |
Method Reference
__construct()
public function __construct( $props, $settings )
Initialize Textarea field.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$props | array | Field properties. | |
$settings | \Gravity_Forms\Gravity_Forms\Settings\Settings | Settings instance. |
Since: 2.5
Source: includes/settings/fields/class-textarea.php:66
markup()
public function markup()
Render field.
Returns
string
Since: 2.5
Source: includes/settings/fields/class-textarea.php:96
get_editor_class()
public function get_editor_class()
Get the CSS classes for the rich text editor.
Returns
string
Since: 2.6
Source: includes/settings/fields/class-textarea.php:172
do_validation()
public function do_validation( $value )
Validate posted field value.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$value | string | Posted field value. |
Since: 2.5
Source: includes/settings/fields/class-textarea.php:197