UNPKG

@wizco/fenixds-ngx

Version:

Componentes fenix design system para Angular.

49 lines 1.33 kB
export interface WcoToastConfigActionsTypes { extraClasse?: string; text: string; materialIconLeft?: string; materialIconRight?: string; action: () => void; } export interface WcoToastConfig { /** * @description Tipo do toast (error, warning, success, info) */ type?: 'error' | 'warning' | 'success' | 'info' | 'loading'; /** * @description Mostrar ou não o ícone */ showIcon?: boolean; /** * @description Ícone Material customizado */ materialIcon?: string; /** * @description Título do toast (aceita HTML) */ title?: string; /** * @description Mensagem do toast (aceita HTML) */ message?: string; /** * @description Ações do toast */ actions?: WcoToastConfigActionsTypes[]; /** * @description Tempo em ms para fechar automaticamente. 0 = não fecha automaticamente. * @default 4000 */ duration?: number; /** * @description Posição do toast na tela * @default 'bottom-right' */ position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center' | 'bottom-center'; /** * @description Permite ocular o icone de fechar do toast. * @default true */ close?: boolean; } //# sourceMappingURL=toast.types.d.ts.map