GithubHelp home page GithubHelp logo

mkeemon / ember-modals Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sir-dunxalot/ember-modals

0.0 2.0 0.0 795 KB

A customizable Ember addon to add API-like functionality for rendering modals in your Ember application. Basic styling is optionally imported.

License: MIT License

JavaScript 89.45% Handlebars 7.27% HTML 3.28%

ember-modals's Introduction

Ember Modals Build Status Ember Addon

ember-modals is an Ember addon that adds API-like functionality for rendering and managing modals in your Ember application. The primary purpose of this addon is to manage modal functionality in your JS whilst getting out of the way for styling and templating.

This allows you to match your styleguide and mockups precisely. However, basic stylesheets and animations are included and may be imported.

ember install:addon ember-modals

Features:

  • Complete control over the context your modals renders in
  • By default modals will render in the context of the current route
  • Use multiple outlets with different modal views and overlays
  • Action handling enables you to interact with modals from different areas of your app
  • Easily customize animations (JS or CSS)
  • Show multiple modals at the same time
  • Import stylesheets for layout and animation

Please note, there may be backwards incompatible changes before v1.0.0.

Documentation

Documentation, including setup, usage, customization, styling/animating, and development can be found in the wiki.

Demo

In absence of an online demo (WIP), you can clone this repo to your desktop and run ember s. You will see a lot of buttons that allow you to show preset modals. Each modal contains info about the context in which it's rendered.

The demo uses the 'scale' animation (see styling for more info).

Issues

If you have any issues or feature requests, please open an issue or submit a PR.

Features and Improvements in the Works

  • Improved WAI-ARIA support and documentation (aria-haspopup for buttons and aria-label for modals)
  • Expose a resetModal() method to reset default properties
  • More Browser support for included stylesheets
  • Test(s) for animation duration of modals
  • Hitting esc should close the modal
  • Online demo

ember-modals's People

Contributors

juliogarciag avatar ember-tomster avatar

Watchers

James Cloos avatar Matthew Keemon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.