Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
selector: 'sky-toast-demo',
templateUrl: './toast-demo.component.html'
})
export class SkyToastDemoComponent {
public selectedType: SkyToastType = SkyToastType.Info;
public types: any[] = [
{
value: SkyToastType.Info,
label: 'Info'
},
{
value: SkyToastType.Success,
label: 'Success'
},
{
value: SkyToastType.Warning,
label: 'Warning'
},
{
value: SkyToastType.Danger,
label: 'Danger'
}
];
constructor(
private toastService: SkyToastService
) { }
public openMessage(): void {
const instance = this.toastService.openMessage(
`This is a sample toast message.`,
{