How to use the @material/snackbar/constants.numbers.MESSAGE_TIMEOUT function in @material/snackbar

To help you get started, we’ve selected a few @material/snackbar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fintechstudios / angularjs-mdc / src / mdc-snackbar / service.js View on Github external
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;
  }
}
github fintechstudios / angularjs-mdc / src / mdc-snackbar / service.js View on Github external
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;
  }