UNPKG

ohayolibs

Version:

Ohayo is a set of essential modules for ohayojp.

40 lines (35 loc) 814 B
import { SafeHtml } from '@angular/platform-browser'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; export type LoadingType = 'text' | 'icon' | 'spin' | 'custom'; export interface LoadingIcon { type?: string; theme?: 'fill' | 'outline' | 'twotone'; spin?: boolean; } export interface LoadingCustom { html?: string | SafeHtml; style?: object; [key: string]: NzSafeAny; } export interface LoadingShowOptions { /** * Display type of loading indicator */ type?: LoadingType; /** * Customized description content */ text?: string; /** * Custom icon */ icon?: LoadingIcon; /** * Custom loading indicator */ custom?: LoadingCustom; /** * Specifies a delay in milliseconds for loading state (prevent flush), unit: milliseconds */ delay?: number; }