DockYard / ember-admin

Admin backend for ember-cli projects
MIT License
241 stars 37 forks source link

Ability to use different include/excludeColumns between forms and index #85

Closed dehuszar closed 4 years ago

dehuszar commented 7 years ago

The ability to limit which columns display in the index is great, but they also then disappear from the form. In many cases (like a Wordpress style CMS) you don't want to display the entire contents of the record, as the article content would be prohibitively long to print into a row, but I would want it to display on the live site and in the new/edit form.

Maybe something along the lines of:

includedColumns: {
  'person': {
    'form': ['name', 'age'],
    'index': ['dateCreated', 'name', 'age']
  }
},
dehuszar commented 7 years ago

Quick amendment. It may be useful to others to know that each model-records controller has individualized overrides. The docs point to overriding the service without mentioning further granularity. Might be a good thing to update the docs with.