@white-matrix/chainide-loading
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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;
}

Readme

Keywords

none

Package Sidebar

Install

npm i @white-matrix/chainide-loading

Weekly Downloads

2

Version

0.1.0

License

MIT

Unpacked Size

16.3 kB

Total Files

4

Last publish

Collaborators

  • shuuuuting
  • hexi1997
  • kilru
  • lucklyric
  • xiadd