CRMSelectBoxController class

Class to controll CRMSelectBox

Constructors

CRMSelectBoxController({List<CRMSelectBoxOption>? selected, bool processing = false, bool multiple = false, List<CRMSelectBoxOption> options = const []})
Constructor CRMSelectBoxController

Properties

hashCode int
The hash code for this object.
no setterinherited
multiple bool
define permission CRMSelectBox is allowed multiple choice or not
getter/setter pair
options List<CRMSelectBoxOption>
define options of CRMSelectBox
getter/setter pair
processing bool
define state of CRMSelectBox when using server side mode
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addOption(CRMSelectBoxOption option) → void
to add option of CRMSelectBox
addOptionAll(List<CRMSelectBoxOption> options) → void
to add all options of CRMSelectBox with array
clear() → void
to clear selected value of CRMSelectBox
getSelected() CRMSelectBoxOption?
get first selected value, this function used when CRMSelectBox not allowed multiple
getSelectedAll() List<CRMSelectBoxOption>
get all selected value, this function used when CRMSelectBox allowd multiple
getSelectedAsString() String
get selected value in string
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeSelected(CRMSelectBoxOption option) → void
remove selected value
removeSelectedAt(int index) → void
remove selected value with specific index
setOptions(List<CRMSelectBoxOption> allOptions) → void
to set all options of CRMSelectBox
setSelected(CRMSelectBoxOption option) → void
to set selected value of CRMSelectBox
setSelectedAll(List<CRMSelectBoxOption> options) → void
to set selected multiple value of CRMSelectBox
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited