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. |
Methods
# inner showToast()
Shows the toast for the seconds specified by "ms" prop.