How to use the progress/Progress.start function in progress

To help you get started, we’ve selected a few progress examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github robeio / robe-react-ui / __test__ / progress / Progress.spec.js View on Github external
it("Progress", () => {
        chai.assert.equal(Progress.instance().isStarted(), false);
        Progress.start();
        chai.assert.equal(Progress.instance().isStarted(), true);
        chai.assert.equal(Progress.instance().settings.showSpinner, false);

        Progress.configure({ showSpinner: true });
        chai.assert.equal(Progress.instance().settings.showSpinner, true);

        Progress.done();
        chai.assert.equal(Progress.instance().isStarted(), false);
    });
});
github robeio / robe-react-ui / site / docs / Docs.jsx View on Github external
__onComponenListClick = (e: Object) => {
        this.setState({
            componentSelection: `Docs/${e.target.text}`
        });
        Progress.start();
    };
}
github robeio / robe-react-ui / site / index.js View on Github external
__onSelect(key:string) {
        Progress.start();
        if (key === "React-Bootstrap") {
            window.open("https://react-bootstrap.github.io/components.html");
            return;
        }

        switch (key) {
            case "en_US":
            case "tr_TR":
                this.setState({
                    language: `assets/${key}.json`
                });
                return;
        }
        window.location.hash = `#${key}`;

        let element = document.getElementById("activePage");
github robeio / robe-react-ui / site / Main.jsx View on Github external
__onSelect(key: string) {
        Progress.start();
        if (key === "React-Bootstrap") {
            window.open("https://react-bootstrap.github.io/components.html");
            return;
        }

        if (key === "github") {
            window.open("https://github.com/robeio/robe-react-ui");
            return;
        }

        if (key === "en_US" || key === "tr_TR" || key === "ru_RU") {
            if (this.props.changeLanguage) {
                this.props.changeLanguage(`${key}.json`);
            }
            return;
        }
github robeio / robe-react-ui / site / components / Components.jsx View on Github external
__onComponenListClick = (e: Object) => {
        this.setState({
            componentSelection: `Components/${this.state.selectedGroup}/${e.target.text}`
        });
        Progress.start();
    };