[Feature] HTML Field
Closed this issue ยท 7 comments
A field type where you can return your own html so you can display images, links, status labels with your color etc.
HTML::make('Custom HTML', function() {
return '<strong>' . $this->status . '</strong>';
})
I haven't tired this but I think this is achievable (for now until this feature to be implemented) by creating a custom field
yeah its possible but I don't want to create custom fields for just simple fields.
Working on this today. Might just make it into the next release. You'd be able to do something like this:
Text::make('Custom Link', function () {
return view('custom-link', [
'url' => url('/view-profile'),
'name' => $this->name,
])->render();
})->asHtml(),
I have made a custom HTML field for anyone that needs: https://github.com/treeStoneIT/nova-html
Your solution is the best David, since it will give us full flexibility to render any HTML we want via a view :) happy to see it on the next Nova version ๐๐ป
Version 1.0.9 has this covered
Text::make('Title')->asHtml()
Alrighty, closing since this just got released. Thanks for the help everyone!