leomelin / meteor-modals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

anti:modals

Modals and dialogs: the Meteor way

Usage

meteor add anti:modals

Demo app: https://github.com/anticoders/meteor-modals-demo.

API


AntiModals.overlay([String] templateName, [Object] options)

Display given template as a dialog.

available options
  • data : Data for the template

AntiModals.dismissOverlay()

Dismiss displayed dialog.


AntiModals.alert()

Display alert dialog.


AntiModals.confirm()

Display confirm dialog.


AntiModals.prompt()

Display prompt dialog.


About

License:MIT License


Languages

Language:JavaScript 57.8%Language:CSS 30.6%Language:HTML 11.5%