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
MultiSelectCollectorwith the given input.Declaration
Swift
public required init(with json: [String : Any])Parameters
jsonThe json to initialize from.
-
Initializes the
MultiSelectCollectorwith the given value.Declaration
Swift
public override func initialize(with value: Any)Parameters
inputThe 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]?
View on GitHub