Remoto - VFS: textareaField Class Reference
Remoto - VFS

The textareaField provides an editable multi-line textarea. More...

#include <textareaField.h>

Inheritance diagram for textareaField:
VFS_form_field

Public Member Functions

 textareaField (QString v, QString label="", QString tip="")
 Create a textarea field. More...
 
void setHeight (int height)
 Set the height option value. More...
 
void setHeight (QString height)
 Set the height option value. More...
 
- Public Member Functions inherited from VFS_form_field
 VFS_form_field (QJsonValue val, QString type, QString label="", QString tip="")
 
 VFS_form_field (QString type)
 
void clearOption (QString o)
 Clear/remove a widget option. More...
 
int getIndex ()
 Get the field index. More...
 
QString getLabel ()
 Return the label. More...
 
void setAllowEmpty (bool e)
 Validate this field against empty-ness. More...
 
void setEnabled (bool e)
 Enable or disable this field. More...
 
void setHidden (bool e)
 Keep the field, but hide it when rendering. More...
 
void setHideLabel (bool l)
 Hide the label for this field. More...
 
void setIndex (int i)
 Set the field index for this widget. More...
 
void setLabel (QString l, bool replace=true)
 Set the label. More...
 
void setOption (QString o, QJsonValue v)
 Set a widget option. More...
 
void setSpellcheck (bool s)
 Enable or disable spellchecking on this text field. More...
 
void setTip (QString t)
 Set the tooltip. More...
 
void setValue (QJsonValue val)
 Set the value. More...
 

Additional Inherited Members

- Protected Attributes inherited from VFS_form_field
QJsonObject options
 Options for any widget type... this is an arbitrary list. More...
 

Detailed Description

The textareaField provides an editable multi-line textarea.

The height option will set the height of the widget. The default height is 50px.

See also
setHeight()
textareaWidget

Definition at line 6 of file textareaField.h.

Constructor & Destructor Documentation

◆ textareaField()

textareaField::textareaField ( QString  t,
QString  label = "",
QString  tip = "" 
)
explicit

Create a textarea field.

Parameters
tThe value
labelThe label
tipThe tooltip

Creates a field of type "textarea"

Definition at line 25 of file textareaField.cpp.

Member Function Documentation

◆ setHeight() [1/2]

void textareaField::setHeight ( int  height)

Set the height option value.

Parameters
heightThe height, in px, of the field

Definition at line 45 of file textareaField.cpp.

◆ setHeight() [2/2]

void textareaField::setHeight ( QString  height)

Set the height option value.

Parameters
heightThe CSS height of the field. CSS units are required.

Definition at line 35 of file textareaField.cpp.


The documentation for this class was generated from the following files: