BsSelectBoxController class

Class to controll BsSelectBox

Constructors

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

Properties

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

Methods

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

Operators

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