tfwright / live_admin

Low-config admin UI for Phoenix apps, built on LiveView
MIT License
260 stars 25 forks source link

Feature requests #52

Closed Rio517 closed 1 year ago

Rio517 commented 1 year ago

Thanks so much for creating this awesome library. I just noticed how to use render_with. Super helpful!

I have two requests:

If I have overlooked existing capabilities, please let me know!

Thanks!

-Mario

tfwright commented 1 year ago

Glad to hear you're finding the lib useful!

Right now you can obviously make these sorts of customizations with overrides.

Assuming you've thought of that and want to avoid...

Of the top of my head I'm not sure the first would work well with the "bulk" actions that are planned. Possible you could use render with on the id field? For the second, Have you looked into trying to use CSS?

tfwright commented 1 year ago

(Also there is the :hidden_fields option, but I'm assuming you want something specific to list view?)

Rio517 commented 1 year ago

Is there a way to specify custom rendering of foreign key fields (org_id)? I noticed that these fields don't seem to go through the render_field function. I was trying to specify how to handle those in :render_with .

tfwright commented 1 year ago

I'll need to check to be sure but that sounds like a bug. I think they should go through the same render flow as any other field, just the default should be different.