# Indicator
A brief toast box. Custom location, duration and style supported.
# Import
import { Indicator } from "deft-ui";
# preview
Copy
# Example
Open an indicator
Indicator.open();
Display text below the spinner
Indicator.open("Loading...");
Open an indicator with an object
Indicator.open({
text: "Loading...",
spinnerType: "fading-circle"
});
Then close it
Indicator.close();
better
this.$nextTick(() => {
Indicator.close();
});
# API
option | description | type | acceptable values | default |
---|---|---|---|---|
text | indicator text | String | ||
spinnerType | type of the spinner | String | 'snake' 'fading-circle' 'double-bounce' 'triple-bounce' | 'snake' |
← Toast