Merge branch 'bugfix/drop_down_selection' into 'release/7_6_0'
slection See merge request BPHV_MIPS/mvm_core_ui!398
This commit is contained in:
commit
1d58dff082
@ -17,6 +17,11 @@
|
|||||||
|
|
||||||
public var options: [String] = []
|
public var options: [String] = []
|
||||||
public var selectedIndex: Int = 0
|
public var selectedIndex: Int = 0
|
||||||
|
|
||||||
|
public override func formFieldValue() -> AnyHashable? {
|
||||||
|
guard !options.isEmpty else { return nil }
|
||||||
|
return options[selectedIndex]
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Keys
|
// MARK: - Keys
|
||||||
@ -26,7 +31,7 @@
|
|||||||
case options
|
case options
|
||||||
case selectedIndex
|
case selectedIndex
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Initializers
|
// MARK: - Initializers
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user