Skip to content
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

More control for CRUD list interface elements #492

Open
Antikon opened this issue May 14, 2020 · 2 comments
Open

More control for CRUD list interface elements #492

Antikon opened this issue May 14, 2020 · 2 comments

Comments

@Antikon
Copy link
Contributor

Antikon commented May 14, 2020

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.

@nadar
Copy link
Member

nadar commented May 15, 2020

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.

@Antikon
Copy link
Contributor Author

Antikon commented May 15, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants