ITextArea

From FiFormsWiki

Jump to: navigation, search

class iTextArea extends iInput

This class is similar to iText, only using a <textarea> html element. This creates a multi-line text input on the form. You should specify the number of rows and columns when you create an instance of this class.

Contents

Properties

$cols The number of columns in the textarea
$rows The number of rows in the textarea


Properties inherited from iInput: $caption $currentRec $dbField $error $errorMsg $formatStr $formatStrRO $otherTags $readOnly $section $value $valueToSave

Method Detail

Methods inherited from iInput

  • checkRO
  • drawInput
  • getValueToSave
  • hide
  • iInput
  • throwError


iTextArea

Creates a new iTextArea object

Syntax: iTextArea($dbField,$caption,$cols,$rows)


Parameters

$dbField - Name of bound database field

$caption - (optional) Field caption. If omitted, set to the dbField name.

$cols - The number of columns in the textarea

$rows - The number of rows in the textarea

Returns

a new iTextArea object

Personal tools