Skip to main content

getViewModelUserObject

@spartanfx/react v1.2.2


@spartanfx/react / spfx / getViewModelUserObject

Function: getViewModelUserObject()

function getViewModelUserObject(user): IComboBoxPeoplePickerUserProps;

Utility function to map a full ISiteUserInfo object into the simplified IComboBoxPeoplePickerUserProps structure used by this component.

Props

PropertyTypeDescription
idnumberUser ID (matches SharePoint user ID).
loginNamestringLogin name or claim-based identifier (e.g., i:0#.f
titlestringDisplay name.

Full type reference: IComboBoxPeoplePickerUserProps

Returns

IComboBoxPeoplePickerUserProps