Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ All Good Now you have this cool toast in your project..
name : 'watch',
after : true // this will append the icon to the end of content
}

// or you can return dom element
iconPack: 'callBack',
icon: element => { // element is tag <i> by default,
// so you can use the element or create your own one
const icon = document.createElement("img");
icon.setAttribute("src", 'path-to-the-image');
return icon;
},
}
```

Expand Down