added value in case there is a difference
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
7b9aa51d0a
commit
8311de5409
@ -12,9 +12,11 @@ extension DropdownSelect {
|
|||||||
|
|
||||||
/// Text that goes as option to DropdownSelect
|
/// Text that goes as option to DropdownSelect
|
||||||
public var text: String
|
public var text: String
|
||||||
|
public var value: String
|
||||||
|
|
||||||
public init(text: String) {
|
public init(text: String, value: String? = nil) {
|
||||||
self.text = text
|
self.text = text
|
||||||
|
self.value = value ?? text
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user