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