Skip to main content

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

PropertyTypeDescription
$typestringField type.
$allow_htmlboolAllow HTML in field value.
$use_editorboolInitialize as Rich Text Editor.
$rowsintNumber of rows.
$editor_heightintEditor height.

Methods

MethodDescription
__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

NameTypeDefaultDescription
$propsarrayField properties.
$settings\Gravity_Forms\Gravity_Forms\Settings\SettingsSettings 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

NameTypeDefaultDescription
$valuestringPosted field value.

Since: 2.5

Source: includes/settings/fields/class-textarea.php:197