updated for isRequired
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
090eadb626
commit
7d263c62cb
@ -53,11 +53,11 @@ class DatePickerViewController: BaseViewController<DatePicker> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
requiredSwitch.onChange = { [weak self] sender in
|
requiredSwitch.onChange = { [weak self] sender in
|
||||||
self?.component.required = sender.isOn
|
self?.component.isRequired = sender.isOn
|
||||||
}
|
}
|
||||||
|
|
||||||
readonlySwitch.onChange = { [weak self] sender in
|
readonlySwitch.onChange = { [weak self] sender in
|
||||||
self?.component.readOnly = sender.isOn
|
self?.component.isReadOnly = sender.isOn
|
||||||
}
|
}
|
||||||
|
|
||||||
transparentBgSwitch.onChange = { [weak self] sender in
|
transparentBgSwitch.onChange = { [weak self] sender in
|
||||||
@ -119,7 +119,7 @@ class DatePickerViewController: BaseViewController<DatePicker> {
|
|||||||
|
|
||||||
//setup UI
|
//setup UI
|
||||||
disabledSwitch.isOn = !component.isEnabled
|
disabledSwitch.isOn = !component.isEnabled
|
||||||
requiredSwitch.isOn = component.required
|
requiredSwitch.isOn = component.isRequired
|
||||||
surfacePickerSelectorView.text = component.surface.rawValue
|
surfacePickerSelectorView.text = component.surface.rawValue
|
||||||
labelTextField.text = component.labelText
|
labelTextField.text = component.labelText
|
||||||
helperTextField.text = component.helperText
|
helperTextField.text = component.helperText
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user