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:
Suresh, Kamlesh Jain 2020-07-15 21:33:31 -04:00
commit 1edef91f20

View File

@ -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 {