Coder Social home page Coder Social logo

meteor-materialize-modal's Introduction

Materialize Modals for Meteor

Warning: This package has dependencies which are not listed in package.js, to use it you'll need to have materializecss's jquery plugin in your app

Usage

Template._makeModal({
  // the data context for your modal template:
  data: {
    message: "some message"
  }
  // the name of the template you want to display, doesn't needto have any
  // modal specific markup 
  , template: 'MyContent'
  // the wrapper template, needs to have modal specific markup, there are two
  // default templates: 
  // '_modalLayoutOK' presents an OK button for users to dismiss the modal
  // '_modalLayoutForm' (better named LayoutEmpty) bare minimum modal markup
  , layoutTemplate: '_modalLayoutOk'
  // You may also pass other options to bee passed through to the materialize
  // modal jquery plugin, see http://materializecss.com/modals.html
});

meteor-materialize-modal's People

Contributors

cwohlman avatar

Stargazers

Jadson Lourenço avatar

meteor-materialize-modal's Issues

Removing from the DOM

You'll need to add a way to remove the Blaze inserted dom elements. The materialize modal does not do that automatically for you. In HarvestWindow I added a close method with a handle to the Blaze returned View that knows how to remove from the dom.

openModal is not a function

I get this when i call the modal

Error: Exception in setTimeout callback:
TypeError: $(...).openModal is not a function
    at cwohlman_materialize-modal.js:43

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.