multidimension
This commit is contained in:
parent
570facbcea
commit
bef4348d2b
@ -117,7 +117,7 @@ open class ItemDropdownEntryField: BaseDropdownEntryField {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK:- Base Picker Delegate
|
// MARK:- Picker Delegate
|
||||||
extension ItemDropdownEntryField: UIPickerViewDelegate, UIPickerViewDataSource {
|
extension ItemDropdownEntryField: UIPickerViewDelegate, UIPickerViewDataSource {
|
||||||
|
|
||||||
@objc public func numberOfComponents(in pickerView: UIPickerView) -> Int { 1 }
|
@objc public func numberOfComponents(in pickerView: UIPickerView) -> Int { 1 }
|
||||||
|
|||||||
@ -16,6 +16,7 @@
|
|||||||
public var options: [String] = []
|
public var options: [String] = []
|
||||||
public var selectedIndex: Int?
|
public var selectedIndex: Int?
|
||||||
|
|
||||||
|
|
||||||
public override func formFieldValue() -> AnyHashable? {
|
public override func formFieldValue() -> AnyHashable? {
|
||||||
guard !options.isEmpty,
|
guard !options.isEmpty,
|
||||||
let index = selectedIndex
|
let index = selectedIndex
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user