0.6.1 • Published 6 years ago

better-ujs v0.6.1

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

Build Status npm version

better-ujs

This unobtrusive scripting support file is developed for the Ruby on Rails framework, but is not strictly tied to any specific backend. You can drop this into any application to:

  • force confirmation dialogs for various actions
  • make non-GET requests from hyperlinks
  • make forms or hyperlinks submit data asynchronously with fetch
  • have submit buttons become automatically disabled on form submit to prevent double-clicking

These features are achieved by adding certain data attributes to your HTML markup. In Rails, they are added by the framework's template helpers.

Installation

  • yarn add better-ujs

Usage

  import start from 'better-ujs';

  start();
0.6.1

6 years ago

0.6.0

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago