Skip to main content

IAppShieldProps

@spartanfx/react v1.2.2


@spartanfx/react / spfx / IAppShieldProps

Interface: IAppShieldProps

Props passed to the AppShield wrapper component for global app context initialization.

Properties

Options

PropertyTypeDescription
customContext?anyOptional custom application-specific context.
customLoadingComponent?ElementDrop in your own loading component if you don’t like modals or want to match a brand style.
sp?SPFIInitialized SPFI instance for SharePoint communication.
webPartContext?WebPartContextWeb part context provided by SPFx.

Events & callbacks

PropertyTypeDescription
onLoadingStateChanged?(loading) => anyOptional custom calback to manage custom loading state change. Disable the default loading animation if provided.

Advanced & escape hatches

PropertyTypeDescription
loadingModalProps?ILoadingModalPropsOptional props passed to the default loading modal.