added valueChanged event

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-08-30 17:07:21 -05:00
parent 4054695a6b
commit 572a7dd123
3 changed files with 7 additions and 1 deletions

View File

@ -22,6 +22,7 @@ public class RadioBoxGroup: Control<DefaultRadioBoxGroupModel>, SelectorGroupSel
if hasError, selectedModel != nil {
hasError = false
}
sendActions(for: .valueChanged)
}
}

View File

@ -22,6 +22,7 @@ public class RadioButtonGroup: Control<DefaultRadioButtonGroupModel>, SelectorGr
if hasError, selectedModel != nil {
hasError = false
}
sendActions(for: .valueChanged)
}
}

View File

@ -15,7 +15,11 @@ public class RadioSwatchGroup: Control<DefaultRadioSwatchGroupModel>, Changable
// MARK: - Public Properties
//--------------------------------------------------
@Proxy(\.model.selectedModel)
public var selectedModel: ModelHandlerType.ModelType?
public var selectedModel: ModelHandlerType.ModelType? {
didSet {
sendActions(for: .valueChanged)
}
}
public var onChange: Blocks.ActionBlock?