Interface ISPFxListWebPartProps

SPFx List WebPart Properties

Hierarchy

Properties

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

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

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