Trait RowsColsWrap
Trait for classes:
- \MvcCore\Ext\Forms\Fields\Textarea
Methods summary
public
integer|null
|
#
GetRows( )
The number of visible text lines for the control. NULL value means no cols
attribute will bee rendered.
The number of visible text lines for the control. NULL value means no cols
attribute will bee rendered.
Returns
integer|null
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-rows
|
public
MvcCore\Ext\Forms\Field
|
#
SetRows( integer|null $rows )
The number of visible text lines for the control. NULL value means no cols
attribute will bee rendered.
The number of visible text lines for the control. NULL value means no cols
attribute will bee rendered.
Parameters
Returns
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-rows
|
public
integer|null
|
#
GetCols( )
The visible width of the text control, in average character widths. If it is
specified, it must be a positive integer. If it is not specified, the default
browser's value is 20 . NULL value means no cols attribute will bee rendered.
The visible width of the text control, in average character widths. If it is
specified, it must be a positive integer. If it is not specified, the default
browser's value is 20 . NULL value means no cols attribute will bee rendered.
Returns
integer|null
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-cols
|
public
MvcCore\Ext\Forms\Field
|
#
SetCols( integer|null $columns = 20 )
The visible width of the text control, in average character widths. If it is
specified, it must be a positive integer. If it is not specified, the default
browser's value is 20 . NULL value means no cols attribute will bee rendered.
The visible width of the text control, in average character widths. If it is
specified, it must be a positive integer. If it is not specified, the default
browser's value is 20 . NULL value means no cols attribute will bee rendered.
Parameters
Returns
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-cols
|
public
string|null
|
#
GetWrap( )
Indicates how the control wraps text. Possible values are:
- 'hard' : The browser automatically inserts line breaks (CR+LF ) so that each
line has no more than the width of the control; the cols attribute
must also be specified for this to take effect.
- 'soft' : The browser ensures that all line breaks in the value consist of
a CR+LF pair, but does not insert any additional line breaks.
- 'off' : Like soft but changes appearance to white-space: pre; so line
segments exceeding cols are not wrapped and the <textarea>
becomes horizontally scrollable.
If this attribute is not specified, soft is its default browser`s value.
Indicates how the control wraps text. Possible values are:
- 'hard' : The browser automatically inserts line breaks (CR+LF ) so that each line has no more than the width of the control; the cols attribute must also be specified for this to take effect.
- 'soft' : The browser ensures that all line breaks in the value consist of a CR+LF pair, but does not insert any additional line breaks.
- 'off' : Like soft but changes appearance to white-space: pre; so line segments exceeding cols are not wrapped and the <textarea> becomes horizontally scrollable.
If this attribute is not specified, soft is its default browser`s value.
Returns
string|null
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-wrap
|
public
MvcCore\Ext\Forms\Field
|
#
SetWrap( string|null $wrap = 'soft' )
Indicates how the control wraps text. Possible values are:
- 'hard' : The browser automatically inserts line breaks (CR+LF ) so that each
line has no more than the width of the control; the cols attribute
must also be specified for this to take effect.
- 'soft' : The browser ensures that all line breaks in the value consist of
a CR+LF pair, but does not insert any additional line breaks.
- 'off ' : Like soft but changes appearance to white-space: pre; so line
segments exceeding cols are not wrapped and the <textarea>
becomes horizontally scrollable.
If this attribute is not specified, soft is its default browser`s value.
Indicates how the control wraps text. Possible values are:
- 'hard' : The browser automatically inserts line breaks (CR+LF ) so that each line has no more than the width of the control; the cols attribute must also be specified for this to take effect.
- 'soft' : The browser ensures that all line breaks in the value consist of a CR+LF pair, but does not insert any additional line breaks.
- 'off ' : Like soft but changes appearance to white-space: pre; so line segments exceeding cols are not wrapped and the <textarea> becomes horizontally scrollable.
If this attribute is not specified, soft is its default browser`s value.
Parameters
Returns
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-wrap
|
Properties summary
protected
integer|null
|
$rows
The number of visible text lines for the control. NULL value means no cols
attribute will bee rendered.
The number of visible text lines for the control. NULL value means no cols
attribute will bee rendered.
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-rows
|
|
protected
integer|null
|
$cols
The visible width of the text control, in average character widths. If it is
specified, it must be a positive integer. If it is not specified, the default
browser's value is 20 . NULL value means no cols attribute will bee rendered.
The visible width of the text control, in average character widths. If it is
specified, it must be a positive integer. If it is not specified, the default
browser's value is 20 . NULL value means no cols attribute will bee rendered.
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-cols
|
|
protected
string|null
|
$wrap
Indicates how the control wraps text. Possible values are:
- 'hard' : The browser automatically inserts line breaks (CR+LF ) so that each
line has no more than the width of the control; the cols attribute
must also be specified for this to take effect.
- 'soft' : The browser ensures that all line breaks in the value consist of
a CR+LF pair, but does not insert any additional line breaks.
- 'off ' : Like soft but changes appearance to white-space: pre; so line
segments exceeding cols are not wrapped and the <textarea>
becomes horizontally scrollable.
If this attribute is not specified, soft is its default browser`s value.
Indicates how the control wraps text. Possible values are:
- 'hard' : The browser automatically inserts line breaks (CR+LF ) so that each line has no more than the width of the control; the cols attribute must also be specified for this to take effect.
- 'soft' : The browser ensures that all line breaks in the value consist of a CR+LF pair, but does not insert any additional line breaks.
- 'off ' : Like soft but changes appearance to white-space: pre; so line segments exceeding cols are not wrapped and the <textarea> becomes horizontally scrollable.
If this attribute is not specified, soft is its default browser`s value.
See
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attr-wrap
|
|