1

I am calling a graph API myself, is it possible to bind the resulting JSON to 1 of the controls? Say People? I couldn't really find how to do that in the docs.

1 Answers1

1

Some components do have the ability to set the properties manually. For example, the mgt-person component accepts a json object to the person-details attribute (or personDetails property):

personControl.personDetails = {
    displayName: 'Nikola Metulev',
    email: 'nikola@contoso.com',
    image: 'url'
}

The people has the people property which works the same way (it's an array of persons)

Nikola Metulev
  • 566
  • 3
  • 7