export static res js code example
Example 1: export static res js
// consumerComponent.js
import { shpwToast } from 'c/utilJs';
Example 2: export static res js
// utilJs.js
export default shpwToast (variant='info', mode='dismissable', title, message) {
const event = new ShowToastEvent({
title: title,
message: message,
mode : mode,
variant : variant
});
return event;
}