aslagle / reactive-table

A reactive table designed for Meteor
https://atmospherejs.com/aslagle/reactive-table
Other
328 stars 137 forks source link

Support for a link to a form for creation of a new record #267

Open dpneumo opened 9 years ago

dpneumo commented 9 years ago

Is there a mechanism to place a link within the context of reactive table to a form for creation of new elements of a collection? I find that this comes up frequently. While I can easily create the link outside of reactive-table this places the link outside the geography occupied by reactive-table on the page. I find this is both ugly and wasteful of the page real estate. Inclusion of a link or button that could be customized to point to a user defined form for creation of a new record would be helpful. Customization of the location of the link or button within the reactive-table real estate would be nice to have as well. Also it should be possible to suppress the rendering of this link/button if the user does not want it to appear.

aslagle commented 9 years ago

I'm planning to work on allowing more customization of the templates soon. I'd prefer to do this in a more general way to allow arbitrary elements instead of adding an option to show or hide a customizable button.

mrmowgli commented 8 years ago

I've actually been using a custom column header to add the 'Add New' link for my stuff. It's pretty clean to do that way, and I'm using bootstrap widgets to make it stand out a bit.

I actually would love to be able to add a button to the filter section. Any updates on this?

aslagle commented 8 years ago

If you only need to change the filter section, you might be able to use this: https://github.com/aslagle/reactive-table#creating-your-own-filter It won't have the full context of reactive table which the original question asked about though.

Sorry I don't have any more customization options for the rest of the table. At this point I think that if I work on this now, there's a good chance whatever I come up with won't be compatible with future versions of meteor anyway, so it might be better to wait and see what happens with Blaze and React.