Giter Club home page Giter Club logo

Comments (6)

0crash0 avatar 0crash0 commented on August 15, 2024

maybe shuffle it on load and create procedure to verify state of activated shuffle mode
or try to emulate click on button $('#link_to_content').trigger('click');
sory if i wrote something stupid = )

from shuffle.

Pay4m avatar Pay4m commented on August 15, 2024

the click event won't work definitely ( tested it by the way .. )

from shuffle.

Vestride avatar Vestride commented on August 15, 2024

@Pay4m I'm not exactly sure what you're attempting to do. Maybe the group option is what you're looking for?

from shuffle.

Pay4m avatar Pay4m commented on August 15, 2024

I've got 3 groups and before I click on any button, all of them are visible, but when I click on button "A", all grids in category "A" will be filtered.
I want the "A" button to be active by default on page load.
I mean, I want to filter grids in category "A" on page load.
Is that possible ?

from shuffle.

Vestride avatar Vestride commented on August 15, 2024

Yes, use the group option.

from shuffle.

0crash0 avatar 0crash0 commented on August 15, 2024

$('#grid').shuffle('shuffle', function($el, shuffle) {
return $el.data('title').length < 10;
});
maybe change 'title' to you filter and replace "< 10" to == 'my_opinion'

from shuffle.

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.