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
1
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 zerb foundation and ember.js

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
Maintainers
1
Weekly downloads
 
Created
Source

ember-cli-foundation-modal

Build Status

Description

ember-cli addon that provides a simple zurb foundation 5.5 modal for ember.js web applications

Installation

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

To use this modal in your app

add the modal bg div to your application.hbs

<div class="reveal-modal-bg" {{bind-attr style=modalBackgroundStyle}}></div>

add the mixin to your application controller

import ApplicationModalMixin from "ember-cli-foundation-modal/mixins/foundation-app-modal";
export default Ember.Controller.extend(ApplicationModalMixin);

add the html for the modal to any template and a button to toggle it

<div {{bind-attr style=modalStyle}} id="resolveModal" class="modal reveal-modal medium" data-reveal></div>
<button id="toggle-btn" {{action "toggleModal"}}>Open And Close</button>

add the mixin to the controller backing the above template

import ModalMixin from "ember-cli-foundation-modal/mixins/foundation-modal";
export default Ember.Controller.extend(ModalMixin);

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 19 Feb 2015

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