MultiSelectCollector
open class MultiSelectCollector : FieldCollector<[String]>, @unchecked Sendable
Class representing CHECKBOX, COMBOBOX type with MULTI_SELECT inputType.
Inherits from FieldCollector
and is used to collect multiple values from a list of options.
-
The currently selected values for this field.
Declaration
Swift
public var value: [String]
-
Initializes the
MultiSelectCollector
with the given input.Declaration
Swift
public required init(with json: [String : Any])
Parameters
json
The json to initialize from.
-
Initializes the
MultiSelectCollector
with the given value.Declaration
Swift
public override func initialize(with value: Any)
Parameters
input
The value to initialize the collector with.
-
Validates this collector, returning a list of validation errors if any.
Declaration
Swift
open override func validate() -> [ValidationError]
Return Value
An array of
ValidationError
. -
Declaration
Swift
override open func payload() -> [String]?