inputEx-library

inputex-choice  3.0.0a

inputEx-library > inputex-choice > inputEx.mixin.choice
Search:
 
Filters

Class inputEx.mixin.choice

This static class is used to provide basic choices functionnalities such as in "select" and "radio" fields We use it by mixin the methods below to the target prototype: eg. Y.mix(inputEx.SelectField.prototype, inputEx.mixin.choice); It provides the following methods : addChoice, removeChoice, hideChoice, showChoice, disableChoice, enableChoice, and getChoicePosition

Methods

addChoice

void addChoice ( ) )
Add a choice
Parameters:
) <Object} config An object describing the choice to add (e.g. { value: 'second' [, label: 'Second' [, position: 1 || after: 'First' || before: 'Third']] >

disableChoice

void disableChoice ( ) )
Disable a choice
Parameters:
) <Object} config An object targeting the choice to disable (e.g. { position : 1 } || { value: 'second' } || { label: 'Second' >

enableChoice

void enableChoice ( ) )
Enable a choice
Parameters:
) <Object} config An object targeting the choice to enable (e.g. { position : 1 } || { value: 'second' } || { label: 'Second' >

getChoicePosition

void getChoicePosition ( ) )
Get the position of a choice in choicesList (NOT in the DOM)
Parameters:
) <Object} config An object targeting the choice (e.g. { position : 1 } || { value: 'second' } || { label: 'Second' >

hideChoice

void hideChoice ( ) )
Hide a choice
Parameters:
) <Object} config An object targeting the choice to hide (e.g. { position : 1 } || { value: 'second' } || { label: 'Second' >

removeChoice

void removeChoice ( ) )
Remove a choice
Parameters:
) <Object} config An object targeting the choice to remove (e.g. { position : 1 } || { value: 'second' } || { label: 'Second' >

showChoice

void showChoice ( ) )
Show a choice
Parameters:
) <Object} config An object targeting the choice to show (e.g. { position : 1 } || { value: 'second' } || { label: 'Second' >


Copyright © 2011 Eric Abouaf All rights reserved.