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

Custom layout for EntityEditor #9

Open
arthef opened this issue May 22, 2020 · 2 comments
Open

Custom layout for EntityEditor #9

arthef opened this issue May 22, 2020 · 2 comments

Comments

@arthef
Copy link

arthef commented May 22, 2020

EntityEditor is a Container and theoretically I can set a custom layout for the container. However, my settings are ignored and some predefined layouts are used depending on what content is being rendered.

It would be very useful to be able to set a custom layouts for rendering EntityList.

My use case is to display list of files (images) and the best option would be GridLayout with 2 or 3 columns.

Could you please consider adding either a setting custom layout or just support for GridLayout for rendering EntityList?

@shannah
Copy link
Owner

shannah commented May 22, 2020

This should be doable. EntityListView keeps its rows in an internal wrapper. I can expose this both directly (setRowsLayout(Layout)) and via a view parameter so that it can be configured through EntityEditor (UI.param(EntityListView.GRID_LAYOUT)).

I have some pending changes in CodeRAD that I'm cleaning up right now. Probably looking at Monday to implement this.

@arthef
Copy link
Author

arthef commented May 22, 2020

Awesome! Thank you.

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

No branches or pull requests

2 participants