meteor-tabular
meteor-tabular copied to clipboard
Add publishAllFields option
Hi, I understand that there is the extraFileds: option do define other fields. But it would be great to have another option to simply tell server-side to publish all (other) fields by default which are not defined in data columns. Especially when having a lot of fields defined in SimpleSchema, Collection2 with quick forms causes a lot of manual work to define fields.
If there is a hint on how to simplify the manual work, I would appreciate this feedback.
Thanks.

Disabling some columns should still allow to edit other fields. But the publishing reduces the object for fields defined (see attached image of GreatAlbums example)
TabularTables.AlbumsList = new Tabular.Table({
name: "Great Albums List",
collection: Albums,
columns: [
{data: "artNr", title: "Art.Nr", class: "col-md-1"},
{data: "artistName", title: "Artist", class: "col-md-3"},
{data: "albumTitle", title: "Title", class: "col-md-4"},
{data: "inStock", title: "In stock", class: "col-md-1"},
{data: "backOrdersPossible", title: "Backorders Possible", class: "col-md-1"},
//{data: "price", title: "Price", class: "col-md-1"},
{
tmpl: Meteor.isClient && Template.AlbumActionBtns, class: "col-md-1"
}
]
});