ehpc / bootstrap-waitingfor

"Waiting for..." modal dialog with progress bar for Bootstrap
MIT License
138 stars 82 forks source link

Feature Request: Help method for showing the default options. #36

Open asiby opened 5 years ago

asiby commented 5 years ago

First of all, thanks for this great tool. It's very easy to use and adds so much to websites.

Feature 1 I am about to add something to this library that will make it easy to have access to some basic documentation.

It's a help method that people can just call at the console using waitingDialog.help(). This will write in the console a least the structure of the options object that can be passed to the code.

Feature 2

An init function that can be called once after loading the library for setting default options. That way, there will be no need to pass the options every time we are calling the show() method unless we need to temporarily override the default.

What do you guys think? Is it something you could accept as a pull request?

Thanks

ehpc commented 5 years ago

Hi, @asiby! Thanks, your pull requests are welcome :)

asiby commented 5 years ago

Thanks. I will make send them as soon as possible.

On Mon, Nov 19, 2018 at 5:05 AM Eugene Maslovich notifications@github.com wrote:

Hi, @asiby https://github.com/asiby! Thanks, your pull requests are welcome :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ehpc/bootstrap-waitingfor/issues/36#issuecomment-439838216, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbz-taTCLJZ8g9CObgK6CsZREOCXOEWks5uwoJUgaJpZM4YGZgZ .