EnterpriseDS Documentation

Protocol DSSelect​Control

@objc public protocol DSSelectControl: AnyObject  

A protocol extension for select controls.

DSSelectControl DSSelectControl AnyObject AnyObject DSSelectControl->AnyObject DSSelect DSSelect DSSelect->DSSelectControl DSSelectTableViewCell DSSelectTableViewCell DSSelectTableViewCell->DSSelectControl

Conforms To

AnyObject

Types Conforming to DSSelect​Control

DSSelectTableViewCell

An Enterprise-styled option selection cell. This should be used when a user needs to select a value from a set of options. Only for use as a cell in UITableView.

DSSelect

An Enterprise-styled option selection. This should be used when a user needs to select a value from a set of options.

Default Implementations

show​Option​Selection(on:​)

func showOptionSelection(on navigationController: UINavigationController?)  

Displays the options screen by navigating via UINavigationController.

Parameters

on UINavigation​Controller?

The UINavigationController to push the options screen on to

Requirements

value

var value: DSSelectOption?  

The value of the field.

options

var options: [DSSelectOption]  

The ordered list of valid values that can be selected for this field.

label​Text

var labelText: String?  

The text to be displayed in the label.