Class Banana.Controls.Decorators.EqualValidator
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: EqualValidator.js.
Class Detail
Banana.Controls.Decorators.EqualValidator(c)
Creates a equal validator Use setControlIdToMath to determine against which control the decorated control should match its data. Note that this control doesn't compare complex objects like arrays or objects. Use controls with string data only
- Parameters:
- {Banana.Controls.InputControl} c
Method Detail
sets the control id to match data on
- Parameters:
- {String} controlId
- Returns:
- {this}
sets the control id to match data on
- Parameters:
- {Banana.Control} control
- Returns:
- {this}