added valueChanged event
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
4054695a6b
commit
572a7dd123
@ -22,6 +22,7 @@ public class RadioBoxGroup: Control<DefaultRadioBoxGroupModel>, SelectorGroupSel
|
|||||||
if hasError, selectedModel != nil {
|
if hasError, selectedModel != nil {
|
||||||
hasError = false
|
hasError = false
|
||||||
}
|
}
|
||||||
|
sendActions(for: .valueChanged)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -22,6 +22,7 @@ public class RadioButtonGroup: Control<DefaultRadioButtonGroupModel>, SelectorGr
|
|||||||
if hasError, selectedModel != nil {
|
if hasError, selectedModel != nil {
|
||||||
hasError = false
|
hasError = false
|
||||||
}
|
}
|
||||||
|
sendActions(for: .valueChanged)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,11 @@ public class RadioSwatchGroup: Control<DefaultRadioSwatchGroupModel>, Changable
|
|||||||
// MARK: - Public Properties
|
// MARK: - Public Properties
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@Proxy(\.model.selectedModel)
|
@Proxy(\.model.selectedModel)
|
||||||
public var selectedModel: ModelHandlerType.ModelType?
|
public var selectedModel: ModelHandlerType.ModelType? {
|
||||||
|
didSet {
|
||||||
|
sendActions(for: .valueChanged)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public var onChange: Blocks.ActionBlock?
|
public var onChange: Blocks.ActionBlock?
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user