aesmail / kaffy

Powerfully simple admin package for phoenix applications
https://kaffy.fly.dev/admin/
MIT License
1.3k stars 153 forks source link

[FEATURE-REQUEST] Have a way to call a custom attribute in show/edit/create #279

Open Morzaram opened 11 months ago

Morzaram commented 11 months ago

Hey there I'm wanting to show a custom read only field where I can populate it.

For example if I have an association submitter, and they submit and event I want to show their name and email on the event show page. Is there a way to do this right now?

for example

submitter_name: %{
        type: :string,
        value: fn event->
          event.submitter.name
        end
      }

Thank you in advance.