Custom Form Elements for mootools

core 

:: Custom Form Elements for mootools > core > Element.Helpers 0.9.4
Filters

Class Element.Helpers

extend Elements with some Helper functions

Methods

disable

disable ( )
disables a HTMLElement if its a form element by setting the disabled attribute to true

disableTextSelection

void disableTextSelection ( )
cross-browser method for disabling the text selection by setting css attributes
Returns: void

enable

boolean enable ( )
enables a HTMLElement if its a form element by setting the disabled attribute to false
Returns: boolean
true, if element could be enabled

getLabel

getLabel ( )
returns the label-element which belongs to this element

setSlidingDoors

setSlidingDoors ( count , type , prefix )
generates the markup used by sliding doors css technique to use with this element
Parameters:
count <object>
type <object>
prefix <object>

toggleDisabled

boolean toggleDisabled ( )
enables or disabled a HTMLElement if its a form element depending on it's current state
Returns: boolean
true, if element could be toggled

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