updated code
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
b2cc52acc6
commit
300d810659
@ -162,10 +162,6 @@ class DropdownSelectViewController: BaseViewController<DropdownSelect> {
|
|||||||
component.options = moreOptions
|
component.options = moreOptions
|
||||||
|
|
||||||
/// callback to know which option chose
|
/// callback to know which option chose
|
||||||
component.onItemSelected = { index, option in
|
|
||||||
print("selected index: \(index) text: \(option.text) value: \(option.value)")
|
|
||||||
}
|
|
||||||
|
|
||||||
component.onChange = { dropdown in
|
component.onChange = { dropdown in
|
||||||
guard let option = dropdown.selectedItem, let index = dropdown.selectId else { print("nothing selected"); return }
|
guard let option = dropdown.selectedItem, let index = dropdown.selectId else { print("nothing selected"); return }
|
||||||
print("selected index: \(index) text: \(option.text) value: \(option.value)")
|
print("selected index: \(index) text: \(option.text) value: \(option.value)")
|
||||||
|
|||||||
@ -34,7 +34,6 @@ class TextAreaViewController: BaseViewController<TextArea> {
|
|||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
addContentTopView(view: component)
|
addContentTopView(view: component)
|
||||||
component.text = "Starting Text"
|
|
||||||
setupPicker()
|
setupPicker()
|
||||||
setupModel()
|
setupModel()
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user