Open IlyaBerzhanin opened 2 years ago
@IlyaBerzhanin Could you please share the code snippet with plugin initialization and usage?
The following seems to work for me: Initialization:
Vue.use(Toasted, { iconPack: 'custom-class' });
Usage:
this.$toasted.info('This is a info alert—check it out!', {
duration: 0,
icon: 'my-info-icon',
});
Hi, I had a task to add custom icon to the toast, so tried to find the example in docs, but didn't succeed. Here is the example from docs:
But if after setting "iconPack: 'callback'; " we can use prop "icon" as function which returns us HTMLelement:
So it is not an issue, maybe some kind of recommendation to add such an example to docs as it was not obvious for me and I suppose some people can also get stuck for a while.
Thanks a lot!