-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improved List View #218
Comments
Hi @rgstephens. Not specifically. The goal of Base is to avoid making the bare minimum number of decisions so you can take it wherever you need to. When it comes to features like this, it's best to merge them with a fork of Base. That said, I'd like to start showcasing forks of Base that include interesting features. Could you send me an email (or share your address here so I can contact you) so we can chat about this? Really appreciate you putting all of this time into PR's/feature ideas! |
I just sent you an email. |
+1 for |
@thearabbit I posted a fork of the main project with a Griddle based List View with pagination, sorting, filtering and action buttons here. @rglover may be posting this and a couple of other example extensions to base soon. |
Why you don't PR? |
I did that in #219. Please note the comment above by @themeteorchef regarding why that PR was rejected. |
@rgstephens @thearabbit on my list to get this on the site, just a bit backed up at the moment :) |
1- If I have more then 1,000,000 docs in Meteor.publish('documents.list', () => Documents.find());
-----
<Griddle
results={documents}
......
------
const composer = (params, onData) => {
const subscription = Meteor.subscribe('documents.list');
if (subscription.ready()) {
const documents = Documents.find().fetch();
onData(null, { documents });
}
};
export default composeWithTracker(composer, Loading)(DocumentsList); 2- Could you example to use {{> tabular table=TabularTables.Books selector=selector......
Template.myTemplate.helpers({
selector() {
return {author: "Agatha Christie"}; // this could be pulled from a Session var or something that is reactive
}
}); |
@thearabbit yes, this will likely cause an issue. You'll want to add some sort of pagination feature to break up the documents into easier to handle chunks. |
I don't understand about this. |
@thearabbit yes its problem with performance at loading! |
Has there been any discussion about an improved list view with pagination, sorting, filtering, etc?
I've been adding the React grid component Griddle to most of my projects built with Base to add these features. I'm starting a new project with latest Base (thanks for all the great improvement in the past few releases) and Griddle is one of the first components I add. I haven't surveyed other options for this functionality in the past few months so maybe there's sometime better.
I install:
The text was updated successfully, but these errors were encountered: