Interface ISPFxListFormWebPartProps

SPFx List Form WebPart Properties

Hierarchy

Properties

componentId?: string

The form component id to use for the edit configuration webpart.

componentProps?: string

The form component properties to use for the edit configuration webpart.

envType?: number

The environment type.

listQuery?: IODataQuery

The odata list query.

onConfigFormDisplaying?: ((wpCfg?) => void)

Type declaration

    • (wpCfg?): void
    • The event called when the modal is being displayed.

      Parameters

      Returns void

onConfigFormFooterRendering?: ((props, wpCfg?) => ITooltipGroupProps)

Type declaration

    • (props, wpCfg?): ITooltipGroupProps
    • The webpart configuration modal footer button properties.

      Parameters

      Returns ITooltipGroupProps

onConfigFormRendered?: ((form, wpCfg?) => void)

Type declaration

    • (form, wpCfg?): void
    • The webpart configuration modal form object.

      Parameters

      Returns void

onConfigFormRendering?: ((props, wpCfg?) => IFormProps)

Type declaration

    • (props, wpCfg?): IFormProps
    • The webpart configuration modal form properties.

      Parameters

      Returns IFormProps

onConfigSaved?: ((wpCfg?) => void)

Type declaration

    • (wpCfg?): void
    • The event called after the webpart configuration is saved.

      Parameters

      Returns void

onConfigSaving?: ((wpCfg) => ISPFxListWebPartCfg)

Type declaration

onDisplayFormRendered?: ((form?) => void)

Type declaration

    • (form?): void
    • The display form rendered event.

      Parameters

      • Optional form: IListDisplayForm

      Returns void

onDisplayFormRendering?: ((props) => IListFormDisplayProps)

Type declaration

onEditFooterRendering?: ((props) => ITooltipGroupProps)

Type declaration

    • (props): ITooltipGroupProps
    • The footer rendering.

      Parameters

      • props: ITooltipGroupProps

      Returns ITooltipGroupProps

onEditFormRendered?: ((form?) => void)

Type declaration

    • (form?): void
    • The edit form rendered event.

      Parameters

      • Optional form: IListEditForm

      Returns void

onEditFormRendering?: ((props) => IListFormEditProps)

Type declaration

onGetListInfo?: ((props) => IListFormProps)

Type declaration

    • (props): IListFormProps
    • The list information properties.

      Parameters

      • props: IListFormProps

      Returns IListFormProps

onListItemCAMLQuery?: ((wpCfg, query) => string)

Type declaration

    • (wpCfg, query): string
    • The event to customize the CAML query used for getting the list items.

      Parameters

      Returns string

onListItemODataQuery?: ((wpCfg, query) => IODataQuery)

Type declaration

    • (wpCfg, query): IODataQuery
    • The event to customize the ODATA query used for getting the list items.

      Parameters

      Returns IODataQuery

onListsChanged?: ((wpInfo, list?) => void | IFormControlProps[] | PromiseLike<IFormControlProps[]>)

Type declaration

onListsLoaded?: ((wpInfo, lists?) => (List | IListQuery)[])

Type declaration

    • (wpInfo, lists?): (List | IListQuery)[]
    • The lists loaded event.

      Parameters

      • wpInfo: IListInfo
      • Optional lists: (List | IListQuery)[]

      Returns (List | IListQuery)[]

onModalRendered?: ((modal) => void)

Type declaration

    • (modal): void
    • The webpart configuration modal properties.

      Parameters

      Returns void

onModalRendering?: ((props) => IModalProps<HTMLElement>)

Type declaration

onSaved?: ((item) => void)

Type declaration

    • (item): void
    • The saved event

      Parameters

      • item: any

      Returns void

onSaving?: ((values) => any)

Type declaration

    • (values): any
    • The saving event.

      Parameters

      • values: any

      Returns any

render?: ((el?, cfg?) => void)

Type declaration

    • (el?, cfg?): void
    • The render event for the webpart.

      Parameters

      Returns void

renderEdit?: ((el?, cfg?) => void)

Type declaration

    • (el?, cfg?): void
    • The render event for the webpart when the page is in edit mode.

      Parameters

      Returns void

renderItems?: ((el?, cfg?, items?) => void)

Type declaration

    • (el?, cfg?, items?): void
    • The render event for the webpart.

      Parameters

      • Optional el: HTMLElement
      • Optional cfg: ISPFxListWebPartCfg
      • Optional items: (IListItemQuery | ListItem)[]

      Returns void

spfx?: {
    context: {
        domElement: HTMLElement;
        graphHttpClient: any;
        host: any;
        httpClient: any;
        instanceId: string;
        itemId?: number;
        list?: {
            title: string;
        };
        manifest: {
            alias: string;
            componentType: string;
            id: string;
            loaderConfig: any;
            manifestVersion: number;
            requiresCustomScript: boolean;
            supportedHosts: string[];
            supportsThemeVariants: boolean;
            version: string;
        };
        pageContext: any;
        propertyPane: any;
        serviceScope: any;
        spHttpClient: any;
        statusRenderer: any;
        webPartTag: string;
    };
    dataVersion: any;
    description: string;
    displayMode: number;
    domElement: HTMLElement;
    formClosed?: (() => void);
    formSaved?: (() => void);
    getPropertyPaneConfiguration: any;
    instanceId: string;
    isRenderAsync: boolean;
    previewImageUrl: string;
    properties: any;
    propertiesMetadata: any;
    title: string;
    width: number;
}

The spfx properties.

Type declaration

  • context: {
        domElement: HTMLElement;
        graphHttpClient: any;
        host: any;
        httpClient: any;
        instanceId: string;
        itemId?: number;
        list?: {
            title: string;
        };
        manifest: {
            alias: string;
            componentType: string;
            id: string;
            loaderConfig: any;
            manifestVersion: number;
            requiresCustomScript: boolean;
            supportedHosts: string[];
            supportsThemeVariants: boolean;
            version: string;
        };
        pageContext: any;
        propertyPane: any;
        serviceScope: any;
        spHttpClient: any;
        statusRenderer: any;
        webPartTag: string;
    }
    • domElement: HTMLElement
    • graphHttpClient: any
    • host: any
    • httpClient: any
    • instanceId: string
    • Optional itemId?: number
    • Optional list?: {
          title: string;
      }
      • title: string
    • manifest: {
          alias: string;
          componentType: string;
          id: string;
          loaderConfig: any;
          manifestVersion: number;
          requiresCustomScript: boolean;
          supportedHosts: string[];
          supportsThemeVariants: boolean;
          version: string;
      }
      • alias: string
      • componentType: string
      • id: string
      • loaderConfig: any
      • manifestVersion: number
      • requiresCustomScript: boolean
      • supportedHosts: string[]
      • supportsThemeVariants: boolean
      • version: string
    • pageContext: any
    • propertyPane: any
    • serviceScope: any
    • spHttpClient: any
    • statusRenderer: any
    • webPartTag: string
  • dataVersion: any
  • description: string
  • displayMode: number
  • domElement: HTMLElement
  • Optional formClosed?: (() => void)
      • (): void
      • Returns void

  • Optional formSaved?: (() => void)
      • (): void
      • Returns void

  • getPropertyPaneConfiguration: any
  • instanceId: string
  • isRenderAsync: boolean
  • previewImageUrl: string
  • properties: any
  • propertiesMetadata: any
  • title: string
  • width: number

Generated using TypeDoc