2.0.1 • Published 6 years ago

disabler v2.0.1

Weekly downloads
15
License
-
Repository
-
Last release
6 years ago

Disabler

Disable buttons with loading feedback. Useful for disabling form buttons to prevent submitting duplicate times.

demo

Usage

$('button').disabler({
	timeout: 50000,
	html: 'Loading...'
});

It's easy to customise the html text displayed by setting up your disabler like so:

<button type="submit" data-disabler="Saving...">Save</button>

Options

OptionTypeDefaultDescription
timeoutinteger50000Number of miliseconds before re-enabling the button
htmlstring, funckeep element's textHTML to use for the element when disabled
autoboolfalseWhether to disable the button instantly (and not bind click events, etc)
2.0.1

6 years ago

2.0.0

6 years ago

1.0.5

7 years ago

1.0.1

7 years ago

0.0.2

8 years ago