我正在尝试寻找答案,但效率不高,所以我在这里。
如何向这些字段添加工具提示?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'
}
}
}]