Custom Form Elements for mootools

text 

:: Custom Form Elements for mootools > text > cfe.module.text 0.9.4
Filters

Class cfe.module.text extends cfe.generic

Known Subclasses:
cfe.module.password cfe.module.slider
replaces input[type=text]

Properties

dontRemoveForFromLabel - protected boolean

flag to prevent deleting the for attribute from the label
for text fields this is important, since the "original" element doesn't get hidden

selector - string

CSS Selector to fetch "original" HTMLElements for replacement with this module

type - string

Describes the type of this element

Properties inherited from cfe.generic:

Methods

build

protected void build ( )
customize the "decorator" (=> sliding doors wrappers)
Returns: void

createOriginal

HTMLElement createOriginal ( )
Method to programmatically create an "original" HTMLElement
Returns: HTMLElement
an input field of type "text"

setupWrapper

protected void setupWrapper ( )
since there's no real "decorator" (just wrapping for sliding doors) for textfields, it won't fetch events
Returns: void

Configuration (Option Attributes)

slidingDoors - int

if > 0, it will create markup for css sliding doors tech
the number defines the amount of wrappers to create around this element
2: standard sliding doors (x- or y-Axis)
4: sliding doors in all directions (x/y-Axis)
Default Value: 2

Configuration attributes inherited from cfe.generic:

back to top | © 2007-2009 | custom form elements mediavrog project. | documentation build with YUI Doc from Yahoo!