Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICardSkeleton

Custom card loading skeleton

Hierarchy

  • ICardSkeleton

Index

Properties

Optional delay

delay: number

The minimum time to wait for the load to complete before showing the skeleton. If not specified, a fixed default value will be used.

hideSkeleton

hideSkeleton: function

Allows the card to hide the custom skeleton. This function will only be called if show() was called during loading.

Type declaration

    • (card: ICard, target: HTMLElement): void
    • Parameters

      • card: ICard
      • target: HTMLElement

      Returns void

Optional minimum

minimum: number

The minimum time to show the skeleton before hiding it. If not specified, a fixed default value will be used.

showSkeleton

showSkeleton: function

Allows the card to display a custom skeleton during loading. This function will only be called if loading takes longer than a fixed minimum interval.

Type declaration

    • (card: ICard, target: HTMLElement): void
    • Parameters

      • card: ICard
      • target: HTMLElement

      Returns void