luya-module-admin icon indicating copy to clipboard operation
luya-module-admin copied to clipboard

More control for CRUD list interface elements

Open Antikon opened this issue 5 years ago • 2 comments

Currently, in fact, we can control the appearance of CRUD list table in a one way: we can call actionIndex in controller with $inline = true. And this will hide header. That's all.

CRUD-interface

I suggest adding to actionIndex $interface parameter that will contain an array responsible for on/off switching of various elements of the CRUD list table.

Antikon avatar May 14 '20 09:05 Antikon

sure, why not.

  1. sure we could make an option to overridethe title
  2. settings can be configured alreadyhttps://luya.io/api/luya-admin-ngrest-base-Controller#$globalButtons-detail
  3. we could introduce a variable to turn this off
  4. we could introduce a variable to turn this off.
  5. only available if filters are defined.
  6. we could introduce a variable to turn this off.

nadar avatar May 15 '20 08:05 nadar

Overriding the current title will be good. But I still insist on the ability to show or hide individual elements of the interface, regardless of how they are configured in the model.

For example, we can define filters in a model in ngRestFilters(). However, the issue of displaying or hiding filters on a page is a matter of View. We can use the same model in different controllers on different pages. And in one case, we will need to display filters, but in the other not.

Antikon avatar May 15 '20 12:05 Antikon