Skip to content

Instantly share code, notes, and snippets.

@StErMi
Created September 8, 2017 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StErMi/142db9a0406021615e0d10f34d1b37a4 to your computer and use it in GitHub Desktop.
Save StErMi/142db9a0406021615e0d10f34d1b37a4 to your computer and use it in GitHub Desktop.
openui5-toastr Configuration
Name Type Default Description
closeButton boolean false Optionally enable a close button
debug boolean false Show more debug informations
progressBar boolean false Visually indicate how long before a toast expires.
preventDuplicates boolean false Rather than having identical toasts stack, set the preventDuplicates property to true. Duplicates are matched to the previous toast based on their message content.
tapToDismiss boolean true Tap toast to dismiss it
newestOnTop boolean true Show newest toast at bottom
showEasing boolean "swing" Animation easing
hideEasing boolean "linear" Animation easing
showMethod boolean "fadeIn" jQuery show/hide method of your choice
hideMethod boolean "fadeOut" jQuery show/hide method of your choice
showDuration string 300 How long the show animation should last
hideDuration string 1000 How long the hide animation should last
timeOut string 5000 How long the toast will display without user interaction
extendedTimeOut string 1000 How long the toast will display after a user hovers over it
rtl boolean false Flip the toastr to be displayed properly for right-to-left languages.
onShown function null Custom callback when toast is shown
onHidden function null Custom callback when toast is hidden
onclick function null Custom callback when toast is clicked
onCloseClick function null Custom callback when toast is closed by the close button (X)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment