Socket
Socket
Sign inDemoInstall

ng-bs-animated-button

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-bs-animated-button

Angular/Bootstrap animated submit button directive


Version published
Maintainers
1
Created
Source

#ng-bs-animated-button

Angular/Bootstrap animated submit button directive.

Demo

http://jeremypeters.github.io/ng-bs-animated-button/

Usage

  1. Install via Bower:
bower install ng-bs-animated-button
  1. Include ng-bs-animated-button.js and ng-bs-animated-button.css in your app. They should be located at bower_components/ng-bs-animated-button/.

  2. Add jp.ng-bs-animated-button as a module dependency to your app:

angular.module('yourApp', ['jp.ng-bs-animated-button']);
  1. Add the directive with the required attributes to your template:
<jp-ng-bs-animated-button is-submitting="isSubmitting" result="result" options="options"></jp-ng-bs-animated-button>
  1. Add the required scope variables and any options to your controller:
app.controller('yourCtrl', function($scope) {

  // Required - set to true on submission
  $scope.isSubmitting = null;

  // Required - set to 'success' or 'error' on success/failure
  $scope.result = null;

  // Optional
  $scope.options = {
    buttonDefaultText: 'Lorem ipsum',
    ...
  };

});

Options

OptionDefault
buttonDefaultClass'btn-primary'
buttonSubmittingClass'btn-primary'
buttonSuccessClass'btn-primary'
buttonErrorClass'btn-danger'
buttonDefaultText'Submit'
buttonSubmittingText'Submitting...'
buttonSuccessText'Completed'
buttonErrorText'There was an error'
buttonInitialIcon'glyphicon glyphicon-plus'
buttonSubmittingIcon'glyphicon glyphicon-refresh'
buttonSuccessIcon'glyphicon glyphicon-ok'
buttonErrorIcon'glyphicon glyphicon-remove'
formIsInvalid''
animationCompleteTime'2000'
iconsPosition'left'
onlyIconsfalse

Keywords

FAQs

Package last updated on 21 Feb 2016

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