【发布时间】:2020-07-14 16:50:31
【问题描述】:
我正在尝试寻找答案,但效率不高,所以我在这里。
如何向这些字段添加工具提示? Tooltip 只包含一个句子,并不复杂。 我应该为更多字段执行此操作,但对于示例,我将显示两个字段。
customerFields: FormlyFieldConfig[] = [{
{
className: 'col-sm-6',
type: 'input',
key: 'companyName',
templateOptions: {
translate: true,
label: 'Customer.companyName',
required: true
}
},
{
className: 'col-sm-6',
type: 'input',
key: 'legalForm',
templateOptions: {
translate: true,
label: 'Customer.legalForm'
}
}
}]
【问题讨论】:
标签: angular forms tooltip angular-formly ngx-formly