Components

SavedToast

<SavedToast toggle ms fileName />

Constructor

# <SavedToast toggle ms fileName />

Toast to display when user saves model.

PropTypes:
Name Type Required Description Default
toggle object Yes Toggle modal useRef hook to be called by parent component.
ms number Yes ms to show the toast.
fileName string No Filename of the model.

View Source components/SavedToast.js, line 19

Methods

# inner showToast()

Shows the toast for the seconds specified by "ms" prop.

View Source components/SavedToast.js, line 41

# inner toggleShow()

Toggles the state of "show"

View Source components/SavedToast.js, line 32