Protocol
DSSelectDelegate
@objc public protocol DSSelectDelegate
A delegate that is notified of various events that occur from DSSelect.
Optional Requirements
selectValueDidChange(_:value:)
@objc optional func selectValueDidChange(_ select: DSSelect, value: DSSelectOption?)
Called when a value is changed/selected in the options screen.
Parameters
Name | Type | Description |
---|---|---|
select | DSSelect |
The DSSelect the value changed for |
value | DSSelectOption? |
The new value |
selectShouldUpdateValidationAppearance(_:)
@objc optional func selectShouldUpdateValidationAppearance(_ select: DSSelect) -> Bool
Called to determine if validations should be processed or ignored.
-
returns True if validations should be processed, false to ignore them for now
Parameters
Name | Type | Description |
---|---|---|
select | DSSelect |
The DSSelect being referred to |
selectTapped(_:)
@objc optional func selectTapped(_ select: DSSelect)
Called when a DSSelect is tapped and should show options.
Parameters
Name | Type | Description |
---|---|---|
select | DSSelect |
The DSSelect being referred to |