RSDMultipleComponentOptions
public protocol RSDMultipleComponentOptions : RSDMultipleComponentChoiceOptions
RSDMultipleComponentOptions is a data source protocol that can be used to set up a picker.
-
If this is a multiple component input field, the UI can optionally define a separator. For example, blood pressure would have a separator of
/
.Declaration
Swift
var separator: String?
-
selectedAnswer(with:)Extension methodReturns the selected answer created by the union of the selected rows.
Declaration
Swift
public func selectedAnswer(with selectedRows: [Int]) -> Any?Parameters
selectedRowsThe selected rows, where there is a selected row for each component.
Return Value
The answer created from the given array of selected rows.
-
selectedRows(from:)Extension methodReturns the selected rows that match the given selected answer (if any).
Declaration
Swift
public func selectedRows(from selectedAnswer: Any?) -> [Int]?Parameters
selectedAnswerThe selected answer.
Return Value
The selected rows, where there is a selected row for each component, or
nilif not all rows are selected. -
textAnswer(from:)Extension methodReturns the text answer to display for a given selected answer.
Declaration
Swift
public func textAnswer(from selectedAnswer: Any?) -> String?Parameters
selectedAnswerThe answer to convert.
Return Value
A text value for the answer to display to the user.
View on GitHub
RSDMultipleComponentOptions Protocol Reference