SPFx WebPart Properties

Hierarchy

Properties

envType?: number

The environment type.

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

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

Type declaration

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

      Parameters

      Returns void

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

Type declaration

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

Type declaration

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

      Parameters

      Returns void

onConfigSaving?: ((wpCfg) => ISPFxWebPartCfg)

Type declaration

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

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