@white-matrix/chainide-loading
v0.1.0
Published
`yarn add @white-matrix/chainide-loading`
Downloads
21
Keywords
Readme
Install
yarn add @white-matrix/chainide-loading
Usage
import { ChainIDELoadingUtil } from "@white-matrix/chainide-loading";
const loadingUtils = new ChainIDELoadingUtil();
// show loading
loadingUtils.showLoading("Loading...");
// hide loading
loadingUtils.hideLoading();
// show step loading
loadingUtils.showStepLoading({
loadingText: "Open Workspace",
stepCount: 3,
currentStep: 1,
stepText: "Init sandbox",
});
interface
interface IChainIDELoadingUtilParams {
bgColor?: string;
}
export declare class ChainIDELoadingUtil {
#private;
private readonly _config;
constructor(config?: IChainIDELoadingUtilParams);
showLoading(loadingText?: string): void;
hideLoading(): void;
showStepLoading(options: {
loadingText?: string;
stepCount?: number;
currentStep?: number;
stepText?: string;
}): void;
}