projects/ui-kit-lib/src/lib/v2/toastr/toastr/toast/toast.component.ts
| changeDetection | ChangeDetectionStrategy.OnPush |
| host | { |
| selector | [toast-component] |
| standalone | true |
| templateUrl | ../base-toast/base-toast.component.html |
| styleUrl | ./toast.component.scss |
Properties |
|
Methods |
| remove |
remove()
|
|
Returns :
void
|
| activateToast |
activateToast()
|
|
activates toast and sets timeout
Returns :
void
|
| delayedHideToast |
delayedHideToast()
|
|
Returns :
void
|
| resetTimeout |
resetTimeout()
|
|
Returns :
void
|
| stickAround |
stickAround()
|
|
Returns :
void
|
| tapToast |
tapToast()
|
|
Returns :
void
|
| updateProgress |
updateProgress()
|
|
updates progress bar width
Returns :
void
|
| Readonly params |
Type : object
|
Default value : { easeTime: this.toastPackage.config.easeTime, easing: 'ease-in' }
|
| Protected appRef |
Type : unknown
|
Default value : inject(ApplicationRef)
|
| Readonly displayStyle |
Type : unknown
|
Default value : computed(() => (this.state() === 'inactive' ? 'none' : undefined))
|
|
hides component when waiting to be displayed |
| duplicatesCount |
Type : number
|
| Protected hideTime |
Type : number
|
| Protected intervalId |
Type : number | undefined
|
| Readonly message |
Type : unknown
|
Default value : computed(() => this.toastPackage.message)
|
| Readonly options |
Type : unknown
|
Default value : linkedSignal<IndividualConfig<ConfigPayload>>(() => this.toastPackage.config)
|
| Readonly originalTimeout |
Type : unknown
|
Default value : computed(() => this.toastPackage.config.timeOut)
|
| Readonly state |
Type : unknown
|
Default value : signal<'inactive' | 'active' | 'removed'>('inactive')
|
| Protected timeout |
Type : number | undefined
|
| Protected timeoutsService |
Type : unknown
|
Default value : inject(TimeoutsService)
|
| Readonly title |
Type : unknown
|
Default value : computed(() => this.toastPackage.title)
|
| Readonly toastClasses |
Type : unknown
|
Default value : computed(
() => `${this.toastPackage.toastType} ${this.toastPackage.config.toastClass}`,
)
|
| Public toastPackage |
Type : unknown
|
Default value : inject(ToastPackage)
|
| Protected toastrService |
Type : unknown
|
Default value : inject(ToastrService)
|
| Readonly width |
Type : unknown
|
Default value : signal(-1)
|
|
width of progress bar |