-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add datamodelbinding for surname for personlookup #2866
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳
setValue('person_lookup_ssn', data.person.ssn); | ||
} | ||
} | ||
|
||
function getFullName({ firstName, middleName, lastName }) { | ||
return middleName ? `${firstName} ${middleName} ${lastName}` : `${firstName} ${lastName}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trenger ikke endre på det nå, bare et tips i tilfelle det kan bli handy en gang du har et litt mer komplekst case enn her og du ikke har sett det før 😄
Jeg syns det ofte er nice å legge sammen tekst vha en liste. Typ
[firstName, middleName, lastName].filter(it != null).join(" ")
@@ -29,7 +29,7 @@ export const Config = new CG.component({ | |||
new CG.prop( | |||
'person_lookup_name', | |||
new CG.dataModelBinding() | |||
.setTitle('Data model binding for zip code') | |||
.setTitle('Data model binding for the full name of a person') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Co-authored-by: Camilla Marie Dalan <camillamdalan@gmail.com>
Quality Gate passedIssues Measures |
Description
Related Issue(s)
Verification/QA
kind/*
label to this PR for proper release notes grouping