I want to know if it is possible to use an Font Awesome icon with Angular-formly.
I am using Angular-formly with bootstrap and now i wat to add Font Awesome icon to the right of the field.
This is how my Angular-formly is setup
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"}
}
};
So is this possible to achieve?
Yes, it's totally possible and there's already an example for it. Just replace the bootstrap classes with font awesome classes and you're good to go.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With