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

ember-cli-foundation-modal

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-foundation-modal

A modal mixin for zurb foundation 5.5

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

ember-cli-foundation-modal

Build Status NPM Downloads

Description

ember-cli addon that sets the foundation reveal root_element to a value that you customize or a reasonable default.

Installation

npm install ember-cli-foundation-modal --save-dev

To use this modal in your app

If you are using Ember 1.X or < 2.1 you will need to use version 0.3.1. Ember 2.1 introduced an API change to the initializers that removed container as the first argument.

Versions of Ember > 2.1 will be deprecation free with 1.0.0.

bower install zurb foundation 5.5

bower install foundation --save

The purpose of this project is to set a reasonable default for reveal's modal location. This default will work great as long as your app doesn't have nested routes.

More than likely, you will need to customize the location of the modal further by assigning it to the top level div in your ember application. To do this, customize the APP portion your environment.js file.

In addition, you probably don't want to wait for the modal during your tests, so you should set the animation speed for the modal to 0.

module.exports = function(/* environment, appConfig */) {
  return {
    APP: {
      foundationModalElement: '#ember-application',
      foundationModalAnimationSpeed: 0
    }
  };
};

Running Tests

npm install
bower install
ember test

License

Copyright © 2015 Toran Billups http://toranbillups.com

Licensed under the MIT License

Keywords

FAQs

Package last updated on 25 Apr 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