Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "components/peoplePicker.d"

People Picker

Index

Variables

Const PeoplePicker

PeoplePicker: (props: IPeoplePickerProps) => IPeoplePicker
import { ContextInfo, Components } from "../../@types-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
        }
    ]
});

Type declaration

Generated using TypeDoc