Giter Site home page Giter Site logo

Comments (11)

mgrn0 avatar mgrn0 commented on May 28, 2024

I would like to hide and re-show certain elements that meet a criteria, e.g. have elements of different classes and let the user hide and re-show them via checkbox or similar. I tried to hide it only with CSS but that does not help, the element(s) still take up space in the Packery layout. .. so +1 ;)

from packery.

desandro avatar desandro commented on May 28, 2024

I should specify that Packery is not Isotope. If you wish to hide/reveal certain items, then Isotope is the library you should use.

from packery.

vbmedia avatar vbmedia commented on May 28, 2024

Would be awesome to be able to hide/show instead of remove elements, would bring together strengths of isotope into Packery.

from packery.

desandro avatar desandro commented on May 28, 2024

Packery layout will be a layout mode in Isotope v3.

from packery.

desandro avatar desandro commented on May 28, 2024

.hide method added in Packery v1.1.0. Currently undocumented.

from packery.

mathjazz avatar mathjazz commented on May 28, 2024

Is the .hide method still in the code? I can't find it in the current or v1.1.0 source.

from packery.

desandro avatar desandro commented on May 28, 2024

@mathjazz It's available via the Outlayer API, which Packery is a sub-class of. See https://github.com/metafizzy/outlayer/blob/v1.3.0/outlayer.js#L776-L789

.hide() isn't quite perfect. You need to pass in an array of Packery Items, not just elements. I've been considering adding another friendlier method.

from packery.

mathjazz avatar mathjazz commented on May 28, 2024

Oh, thanks for pointing that out!

from packery.

bryceadams avatar bryceadams commented on May 28, 2024

@desandro still interested in adding a friendlier method or just sticking to .hide()? 😄

from packery.

desandro avatar desandro commented on May 28, 2024

@bryceadams Still interested. I've done some work on it recently, see metafizzy/outlayer@d89057a

from packery.

pliablepixels avatar pliablepixels commented on May 28, 2024

@desandro - how does one use the outer layer API? I am using packery.pkgd.js.

from packery.

Related Issues (20)

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.