• People Picker

    import { ContextInfo, Components } from "gd-sprest-bs";

    // Create the panel
    let el = document.querySelector("#people-picker");
    let form = Components.Form({
    el: el,
    rows: [
    // Other controls go here
    {
    control: {
    allowGroups: false,
    label: "Select User:",
    multi: true,
    name: "User",
    type: Components.FormControlTypes.PeoplePicker
    value: ContextInfo.userId // Default to the current user
    } as Components.IFormControlPropsPeoplePicker
    }
    ]
    });

    Parameters

    Returns IPeoplePicker

Generated using TypeDoc