如何在验证输入类型时更改 **glyphicon"(输入字段右侧(见下文))?
例如。当输入有效时,将其更改为glyphicon-ok(勾号)或当输入无效时将其更改为glyphicon-remove(十字符号)
vm.rentalFields = [
{
key: 'first_name',
type: 'input',
// class:glyphicon-ok,
templateOptions: {
type: 'text',
label: 'First Name',
placeholder: 'Enter your first name',
required: true,
"addonRight": {
"class": "glyphicon glyphicon-ok form-control-feedback"
}
}
}];