Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
showStartAligned({
message, timeout = numbers.MESSAGE_TIMEOUT, actionText = undefined, actionHandler = undefined,
multiline = false, actionOnBottom = false, dismissesOnAction = true,
parent = this.$rootElement,
}) {
const snackbar = this.getMDCSnackbar_(parent, startAlignedTemplate);
this.show_(snackbar, {message, timeout, actionText, actionHandler, multiline, actionOnBottom, dismissesOnAction});
return snackbar;
}
}
show({
message, timeout = numbers.MESSAGE_TIMEOUT, actionText = undefined, actionHandler = undefined,
multiline = false, actionOnBottom = false, dismissesOnAction = true,
parent = this.$rootElement,
}) {
const snackbar = this.getMDCSnackbar_(parent, defaultTemplate);
this.show_(snackbar, {message, timeout, actionText, actionHandler, multiline, actionOnBottom, dismissesOnAction});
return snackbar;
}