0.0
No commit activity in last 3 years
No release in over 3 years
the ladda button effect assets
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

ladda-sprockets

Ladda is a UI concept merging the loading indicator into the action invoked them. Here we package it for Asset Pipeline usage. The original source is from github.com/hakimel/Ladda where you can check out the instructions. And there is a demo page.

Usage

If there is a Gemfile, declare

gem "ladda-sprockets"

or

require "ladda-sprockets"

in proper situation in your application after $ gem install ladda-sprockets

Then in head of the major javascript file append

//= require "spin"
//= require "ladda"

Note you must declare //= require spin first. Spin is the dependency of Ladda.

If you have manual management of search paths of Sprockets::Environment, Ladda::Sprockets.path will return the path of javascripts.

Stylesheets from Ladda can be loaded with

@import "ladda";
@import "ladda-theme";

Where ladda-theme is optional as documented in original README.