Currently we have in our project the peppelg:bootstrap-3-modal meteor package (which also uses twbs:bootstrap because its needed). We want to delete bootstrap completely from our project so we are lookinf for alternatives for a modal system to run in our Meteor Blaze project.
I’m using the same package. It’s great because it has nifty template support inside the modal.
However if you get rid of bootstrap you get rid of this package.
This might be helpful.
call_modal_client.js
Session.set('modalData', {template: "modal-backups", title: "Backup", files: [{name: "blah", date: new Date()}]});
$('#myModal').modal();
index.html
<head>
<title>Bootstrap based site</title>
</head>
<body>
{{> modal}}
</body>
modals.html
<!-- A template to include in index.html that dynamically renders the a modal template -->
<template name="modal">
{{#if modalData}}
{{> Template.dynamic template=modalData.template data=modalData}}
{{/if}}
</template>
<!-- A generic block to be used by our modals -->
<template name="modalBlock">
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
This file has been truncated. show original
There are more than three files. show original
1 Like