Coder Social home page Coder Social logo

ng-isotope's Introduction

ng-isotope

AngularJS directives for Isotope by Metafizzy

Using current isotope available v2.0.0-beta.8 and Angular 1.2.14

This is a working in progress. Pull requests are welcome.

How to use?

Install using bower install ng-isotope

Add to your head isotope.pkgd.js ng-isotope.js

See demo.html for code samples

Settings

========= You can set a few options like so

 <div isotope-grid="elementsList" layout-mode="" item-selector="" isotope-reload-event="reload-elements" isotope-sort-event="sort-elements" isotope-filter-event="filter-elements">

ng-isotope's People

Contributors

dv336699 avatar vimes1984 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ng-isotope's Issues

using angular filter:search

when using the angular js search with ng-isotope, the items does not rearrange initially, it seems stick at its original place, leaves a lot of blank spaces between tiles.

wonder if anyone has some suggestions on how to resolve it.

here is the code I added to the demo.html

Search
     <input type="text" name="search" id="search" value="" placeholder="Start typing..." autocomplete="off" ng-model="search"/> 
     <a href="#" id="showAll">Show all</a>
   </div>
   <p id="noMatches" style="display:none;">No matches found</p>

filter button does not work with ng-repeat

I am using your library in one of my project, let me first thank you for creating this library.

I am running into an issue though:
when trying to create filter buttons with ng-repeat, it does not work.

Then, I decided to try using your demo.html and here is the code:

Filter using ng-repeats
<div class="btn-group" isotope-filter isotope-filter-event="filter-elements" isotope-filter-group="metals">
    <button isotope-filter-by="*" class="btn btn-default active">show all</button>

    <button ng-repeat="type in types track by $index" isotope-filter-by=".{{types[$index]}}" class="btn btn-default">{{types[$index]}}</button>
    
</div>

Wonder if you have any insight about this?

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.