PHP2Go Javascript Framework

Class MemoField

Object
   |
   +--Field
         |
         +--ComponentField
               |
               +--MemoField

class MemoField
extends ComponentField


MemoField
Defined in form/memofield.js


Field Summary
 Object count
          Control field used to display characters left
 Number maxlength
          Max chars allowed
   
Fields inherited from class ComponentField
componentClass
   
Fields inherited from class Field
fld, id, name, label, type
 
Constructor Summary
MemoField (<Object> id, <Number> maxlength)
            The MemoField form component is used in form components built using the "memofield" tag in the XML specification
 
Method Summary
 void clear()
           Clears the textarea value
 Boolean isEmpty()
           Checks whether the textarea value is an empty string
 void keyHandler(<Event> e)
           Handles onKeyUp and onKeyDown events in the textarea, updating the aux control field with the number of chars left
 void setup()
           Initializes the component's properties and event handlers
 
Methods inherited from class ComponentField
raiseEvent
   
Methods inherited from class Field
getFormElement, getMask, getValue, setValue, enable, disable, setDisabled, focus, beforeFocus, serialize
 

Field Detail

count

Object count

maxlength

Number maxlength

Constructor Detail

MemoField

MemoField(<Object> id, <Number> maxlength)

Method Detail

clear

void clear()

isEmpty

Boolean isEmpty()

keyHandler

void keyHandler(<Event> e)

setup

void setup()

PHP2Go Javascript Framework

Copyright © 2002-2006 by Marcos Pont
Documentation generated by JSDoc on Sun Oct 7 19:52:10 2007