Coder Social home page Coder Social logo

meteor-bootstrap3-lightbox's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @tsega
  • ๐Ÿ‘€ Iโ€™m interested in Fintech & AI
  • ๐ŸŒฑ Iโ€™m currently learning Graph Databases, DevSecOps & Cloud-Native Development
  • ๐Ÿ’ž๏ธ Iโ€™m looking to collaborate on Community Building, Modern JavaScript Platforms, Drupal and Translations (Amharic)
  • ๐Ÿ“ซ How to reach me @tsegat

meteor-bootstrap3-lightbox's People

Contributors

tsega avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

dolgarev

meteor-bootstrap3-lightbox's Issues

data-gallery is not working

I have the following html code inside a Meteor template

<a href="myUrl" data-type="image" data-gallery="gallery" data-title="{{name}}" data-toggle="lightbox">
  <img src="myThumbUrl" style="width:100%; height:100%;"/>
</a>

The lightbox is oppening the image properly but it is not grouping the images inside the gallery and, of course, the navigation arrows are not showing in the components

Thank you

Detect change events on modal dialog

I want to add a delete button to the modal-footer but I'm stuck with how to monitor change events so I can actually perform the delete operation... My template contains the image with the data-toggle attribute and the icon I placed in the data-footer shows fine but nothing happens if I click that (with my event attached the the imageItem template).

<template name="imageItem">
  <div class="slide" id="demo-box">
    <a href="{{this.url store='images'}}" data-title="{{fileName}}" data-footer="{{#if ownImage}}<a class='delete-image'><i class='fa fa-trash fa-lg'></i></a>{{/if}}" data-toggle="lightbox">
      <img src="{{this.url store='thumbnails'}}" class="img-responsive" />
    </a>
    <div class="slide-caption">{{created}}</div>
  </div>
</template>
Template.imageItem.events({
  'click .delete-image': function(e) {
    console.log("delete clicked");

    e.preventDefault();

    var sure = confirm("Are you sure you want to delete this image?");
  }
});

(neither the console output nor the confirmation pop up fire)

0.8.3 meteor

Does this work with 0.8.3 meteor? If not, can I make it work by installing an older version?

This is not working with Meteor 1.2

I added the package as indicated, and added in test code in the fashion according to the instructions, and the image for the href simply goes to a different page on the browser. If i use a web page URL, the lightbox shows up, but the content is just this message: 'Could not detect remote target type. Force the type using data-type="image|youtube|vimeo"'.

The Meteor version is 1.2.0.2, and the Bootstrap version is twbs:bootstrap 3.3.5.

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.