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
@ -18,6 +18,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
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user