Hi Team
On multiselectdropwn component we use
text and value properties to specify what to display and what is the value of the select box
we would like to use index of array as value as that is our primary identifier
Currently we are using
and we would like to use
OR
where value of dropdown selection is index of array
https://stackblitz.com/edit/angular-pzfdz8?file=app.component.ts
Thanks
Mohit
|
// map the groupBy field with category column
public mycheckFields: Object = { text: 'dosTo', value: 'id' };
public myc = [
{
dosFrom: '03/21/2021',
dosTo: '03/21/2021',
id: 1,
provider: 'Hughes, Patricia - 1012345678',
pos: '11 - Office',
noteType: 'Progress / Consult Note',
diagnosisDetail: [
...]
},
{
dosFrom: '07/05/2021',
dosTo: '07/05/2021',
id: 2,
provider: 'Hughes, Patricia - 1012345678',
pos: '11 - Office',
noteType: 'Progress / Consult Note',
diagnosisDetail: [
...]
},
{
dosFrom: '08/08/2021',
dosTo: '08/08/2021',
id: 3,
provider: 'Hughes, Patricia - 1012345678',
pos: '11 - Office',
noteType: 'Progress / Consult Note',
diagnosisDetail: [
...]
} |
|
|
Hello Berly
Thank you for your reply on this
As this require modification on every single object that we plan to use with grid, and it requires to go through thousands of objects and inject new fields in various models that we have.
is it possible ot use the *index of array* as the identifier
Thank you
Mohit