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 Output for edit field? #1022

Open
timbroder opened this issue Apr 29, 2016 · 1 comment
Open

Custom Output for edit field? #1022

timbroder opened this issue Apr 29, 2016 · 1 comment

Comments

@timbroder
Copy link

I'd like a few of my relationship-based edit fields to, instead of the relationship selector, show custom html so I can link to that entity's admin page.

Similar to how I can do it for a col:

        'savingsAccount' => [
            'output' => function ($value) {
                if ($value) {
                    $id = $value->id;
                    return "<a href=\"/admin/savingsaccounts/$id\">$id</a>";
                }
            }

Is this possible?
(this also would help me hack around morph relationships in #191)

Thanks in advance

@gregoryloichot
Copy link

gregoryloichot commented Aug 22, 2016

That would be great, especially for relationship types.

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