Index

Classes

Class

Methods

Class Banana.Controls.Decorators.RequiredFieldValidator


Extends Banana.Controls.Decorators.Validator.

Methods borrowed from class Banana.Controls.Decorators.Validator:
createComponents, getData, getHtml, getInfoText, getValidatedControl, getValidationGroup, hideIndicators, isValid, markInvalid, removeMarkInvalid, setData, setInfoText, setShowIndicator, setValidateOnEventType, setValidationGroup, showIndicators, unload, updateDisplay
Methods borrowed from class Banana.Controls.Decorators.Decorator:
getDecoratedControl
Methods borrowed from class Banana.Controls.Panel:
getTagName
Methods borrowed from class Banana.UiControl:
addControl, addCss, addCssClass, getAttribute, getAttributes, getClientId, getCss, getCssClass, getDimensions, getHtmlAttributes, getState, getStyle, getStyleProperty, hasCssClass, registerEvents, removeAttribute, removeCssClass, removeState, setAttribute, setClientId, setCss, setEnabled, setState, setStyle, setVisible, switchCssClass, triggerEvent, unregisterEvents
Methods borrowed from class Banana.Control:
applyToChildren, bind, clear, findControl, generateUniqueId, getControls, getDomEventTypes, getFirstUiControl, getId, getPage, getParent, getProxy, hasBind, invalidateDisplay, onPreInvalidateContents, onWindowResize, remove, render, setId, setPage, setParent, unbind

Defined in: RequiredFieldValidator.js.

Class Detail
Banana.Controls.Decorators.RequiredFieldValidator(controlToValidate)

Creates a required field validator. All controls which are validated should supply data in string, array or object format. empty string or empty array will not pass the validation

Parameters:
{Banana.Controls.InputControl} controlToValidate
Method Detail
{Boolean} validateData(data)
Parameters:
{mixed} data
to validate
Returns:
{Boolean}

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Dec 05 2012 22:01:49 GMT+0100 (CET)