Custom Form Elements for mootools

file 

:: Custom Form Elements for mootools > file > cfe.modules.file 0.9.4
Filters

Class cfe.modules.file extends cfe.generic

replaces file upload fields bug: update event onMouseOut triggers even if nothing changed ff 3.0.7 - no pointer opera - no pointer; no focus on label if ori focussed, click event triggers twice ie 8 - no focus on label if ori focussed ie 7 - no focus on label if ori focussed

Properties

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

createOriginal

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

getFilePath

HTMLElement getFilePath ( )
retreive the filepath
Returns: HTMLElement

toElements

HTMLElement[label, alias, filePath] toElements ( )
retreive the label, the alias and the filepath
Returns: HTMLElement[label, alias, filePath]

Configuration (Option Attributes)

fileIcons - boolean

enables the use of fileicons through a bit of markup and css
Default Value: true

trimFilePath - boolean

show only the filename, not the whole path
Default Value: true

Configuration attributes inherited from cfe.generic:

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