EnterpriseDS Documentation

Protocol DSSelect​Delegate

@objc public protocol DSSelectDelegate  

A delegate that is notified of various events that occur from DSSelect.

Optional Requirements

select​Value​Did​Change(_:​value:​)

@objc optional func selectValueDidChange(_ select: DSSelect, value: DSSelectOption?) 

Called when a value is changed/selected in the options screen.

Parameters

select DSSelect

The DSSelect the value changed for

value DSSelect​Option?

The new value

select​Should​Update​Validation​Appearance(_:​)

@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

select DSSelect

The DSSelect being referred to

select​Tapped(_:​)

@objc optional func selectTapped(_ select: DSSelect) 

Called when a DSSelect is tapped and should show options.

Parameters

select DSSelect

The DSSelect being referred to