Comments (9)
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.
Editing the increment value worked, but now a button should appear to load more results, but doesnt.
thank you!
from meteoris2.
which one from my answer did you used @marcojferreirac ?
from meteoris2.
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.
loadmore button also not showing?
from meteoris2.
yes, the loadmore button doesn't appear.
from meteoris2.
can You Please give your code at MeteorisController and YourController?
from meteoris2.
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.
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)
- meteoris does not work iron:router HOT 1
- How do you relate two collections meteoris using code generator? HOT 3
- discrepancy in url/dir structure
- Choose field name for select option label on relationships HOT 2
- Select widget for collection names on Mugen Crudss generator. HOT 5
- "Add new" button with modal on relationship select field HOT 3
- Are both 'views' and 'templates' directory necessary? HOT 5
- Subscription generator HOT 3
- Autogenerated form helpers using lowercase collection name HOT 2
- Consider collaborating as a GitHub organization HOT 11
- how can I give guest or having * level users insert access . HOT 1
- Package name appears twice HOT 1
- Unable to add new users to role group HOT 1
- Array object field HOT 1
- Cannot remove Bootstrap HOT 1
- Using "time" type
- Is this project still active? HOT 2
- Exception when using audit-argument-checks package HOT 1
- Error when using CRUDSS Generator HOT 1
- image display on iphone and ipad HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meteoris2.