Merge branch 'feature/formvalidator_remove' into 'develop'
Added remove to form validator See merge request BPHV_MIPS/mvm_core_ui!530
This commit is contained in:
commit
1edef91f20
@ -46,6 +46,13 @@ import MVMCore
|
||||
groupWatchers.append(action)
|
||||
}
|
||||
|
||||
/// Removes the form field to the validator.
|
||||
public func remove(_ field: FormFieldProtocol) {
|
||||
if let fieldKey = field.fieldKey {
|
||||
fields.removeValue(forKey: fieldKey)
|
||||
}
|
||||
}
|
||||
|
||||
/// Determines the type of item and adds it.
|
||||
private func insert(_ item: FormItemProtocol) {
|
||||
if let item = item as? FormFieldProtocol {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user