PHP Class Carbon_Fields\Field\Textarea_Field

Inheritance: extends Field
Show file Open project: htmlburger/carbon-fields

Protected Properties

Property Type Description
$height
$rows

Public Methods

Method Description
set_height ( integer $height = 170 ) Set the height of the field.
set_rows ( integer $rows ) Change the number of rows of this field.
template ( ) Underscore template of this field.
to_json ( boolean $load ) : array Returns an array that holds the field data, suitable for JSON representation.

Method Details

set_height() public method

Deprecated in favor of set_rows()
Deprecation:
public set_height ( integer $height = 170 )
$height integer Height (in pixels)

set_rows() public method

Change the number of rows of this field.
public set_rows ( integer $rows )
$rows integer Number of rows

template() public method

Underscore template of this field.
public template ( )

to_json() public method

This data will be available in the Underscore template and the Backbone Model.
public to_json ( boolean $load ) : array
$load boolean Should the value be loaded from the database or use the value from the current instance.
return array

Property Details

$height protected property

protected $height

$rows protected property

protected $rows