Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

disabler

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

disabler

Disable buttons, preventing duplicate form submissions.

  • 2.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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)

FAQs

Package last updated on 09 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc