Skip to content

Instantly share code, notes, and snippets.

@devbyray
Created Dec 31, 2021
Embed
What would you like to do?
fields: FormlyFieldConfig[] = [
{
key: 'postal',
type: 'input',
parsers: [(value: string) => value?.toUpperCase()],
templateOptions: {
label: 'Postal code',
type: 'text',
appearance: 'outline',
},
expressionProperties: {
'model.postal': 'model.postal',
},
modelOptions: {
updateOn: 'blur',
},
},
{
key: 'initials',
type: 'input',
parsers: [(value: string) => this.formatInitials(value)],
templateOptions: {
label: 'Initials',
type: 'text',
appearance: 'outline',
},
expressionProperties: {
'model.initials': 'model.initials',
},
modelOptions: {
updateOn: 'blur',
},
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment