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

Added url input and _blank boolean #9

Merged
merged 2 commits into from
Feb 4, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added url input and _blank boolean
Support for external links and optional taget _blank
  • Loading branch information
aw-gerrit committed Feb 4, 2021
commit 464738e318da3c44569b6b286460326526b05cdd
8 changes: 7 additions & 1 deletion src/Macros/CrudNavMacro.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ public function register()
$form->input('title')->title('Link Text')->translatable();

// Route field.
$form->route('route')->title('Route')->collection('app')->allowEmpty();
$form->route('route')->title('Route (intern)')->collection('app')->allowEmpty();

// URL field.
$form->input('url')->title('URL (extern)');

// _blank boolean.
$form->boolean('target_blank');

// Next we are allowing to append field by passing the form to
// a closure if given.
Expand Down