Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation #32

Open
2 tasks
guncha opened this issue Sep 14, 2017 · 2 comments
Open
2 tasks

Update documentation #32

guncha opened this issue Sep 14, 2017 · 2 comments
Assignees

Comments

@guncha
Copy link

guncha commented Sep 14, 2017

A few issues were brought up:

  • What's the usage in a modern ES6 environment?
  • How to ensure the CSS files are added to the page when installing from NPM? Perhaps recommend something like style-loader from webpack.
@guncha guncha self-assigned this Sep 14, 2017
@michshat
Copy link

michshat commented Oct 22, 2017

Here how i used it in react project:

  1. install libs
    npm install please-wait --save-dev
    npm install spinkit --save-dev

  2. import references

import 'please-wait/build/please-wait.css';
import 'spinkit/css/spinners/5-pulse.css';
import { pleaseWait } from 'please-wait';
  1. initialize the component
window.loading_screen = pleaseWait({
		logo: 'logo.png',
		backgroundColor: '#1DA57A',
		loadingHtml: "<p class='loading-message'>The application is getting ready ...</p><div class='sk-spinner sk-spinner-pulse'></div>"		
	});
  1. dismiss the component
window.loading_screen.finish();

Hope that helps

@roy1196
Copy link

roy1196 commented Jun 24, 2018

How can I init the var? exist an init method or start?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants