GithubHelp home page GithubHelp logo

Comments (9)

radiegtya avatar radiegtya commented on August 13, 2024

in the Controllers at func subscriptions and index, simply override this value

sort.limit = this.limit();

to

sort.limit = 3;

but it's not reccomended

the reccommended one is ovverride the increment variable in your controller add this:

increment: 3

or if you want to set the whole app with limit 3, simply edit the MeteorisController increment value

from meteoris2.

marcojferreirac avatar marcojferreirac commented on August 13, 2024

Editing the increment value worked, but now a button should appear to load more results, but doesnt.

thank you!

from meteoris2.

radiegtya avatar radiegtya commented on August 13, 2024

which one from my answer did you used @marcojferreirac ?

from meteoris2.

marcojferreirac avatar marcojferreirac commented on August 13, 2024

Editing the MeteorisController increment value. But now, even if my collection has 10 fields, i can only access 3. The others aren't loaded/can't be accessed.

from meteoris2.

radiegtya avatar radiegtya commented on August 13, 2024

loadmore button also not showing?

from meteoris2.

marcojferreirac avatar marcojferreirac commented on August 13, 2024

yes, the loadmore button doesn't appear.

from meteoris2.

radiegtya avatar radiegtya commented on August 13, 2024

can You Please give your code at MeteorisController and YourController?

from meteoris2.

marcojferreirac avatar marcojferreirac commented on August 13, 2024

My MeteorisController code is the same as the one in gitHub, only changed "increment: 3".

My controller's code is the generated code, only changing the sort.limit in the "subscriptions" function, like below:

ItemsController = MeteorisController.extend({
 subscriptions: function() {
        var sort = MeteorisGridView.getSorting();
        sort.limit = 3;
        this.subs.subscribe('ccdocs', {});
        this.subs.subscribe('descriptions', {});
        this.subscription = this.subs.subscribe('items', this.getCriteria(), sort);
    },
});

from meteoris2.

radiegtya avatar radiegtya commented on August 13, 2024

Hi @marcojferreirac, I think you get me wrong. You shouldn't change the sort limit inside subscribe function, that will just subsrcibe 3 data from server and no more hardcoded. I mean you must change the MeteorisController itself, not the child. And you should change the increment variable value, not the limit.

from meteoris2.

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.