Angular-formly with Font awesome

Angular-formly with Font awesome

我想知道是否可以在 Angular-formly 中使用 Font Awesome 图标。 我将 Angular-formly 与 bootstrap 一起使用,现在我想在字段右侧添加 Font Awesome 图标。
这就是我的 Angular-formly 的设置方式

            field = {
                className: 'col-md-3',
                key: name,
                type: typeObject.type,
                templateOptions: {
                    "valueProp": "name",
                    disabled: typeObject.disabled,
                    type: 'text',
                    label: name,
                    required: true,
                    options: typeObject.options,
                    fieldData: value,
                    addonRight: {text:"Font Awesome icon here"}
                }
            };

那么这有可能实现吗?

是的,这完全有可能,而且已经 an example 了。只需将 bootstrap 类 替换为很棒的字体 类 就可以了。