UNPKG

sp-formgen-react

Version:

Formula generator for SharePoint with JSON for react. UI Fabric controls are used for rendering

14 lines (13 loc) 513 B
import { FormInputs } from 'formgen-react/dist/form/FormInputs'; import { ControlTypes } from 'formgen-react/dist/Enums'; import { FormSPPeoplePicker } from '../inputs/peoplePicker/FormSPPeoplePicker' /** * Replace the People Picker with the Sharepoint people picker */ export class SPFormInputs extends FormInputs { constructor() { super(); let picker = this.controls.find(c => c.typeName == ControlTypes.PeoplePicker); picker.controlType = FormSPPeoplePicker; } }