Replies: 2 comments 1 reply
-
@MACscr I'm über busy this week so won't have a chance to do this, but feel free to open a PR.. I'll have a small bit of time to review it. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Way easier than i thought. You just add another field in the form: FilamentNavigation::addItemType('Page link', [
Select::make('page_id')
->label('Page')
->searchable()
->options(function () {
return Page::pluck('title', 'id');
}),
TextInput::make('icon')
->placeholder('o-folder')
->helperText('Use a HeroIcon class name.')
->reactive()
->suffix(function($get) {
// TODO check if icon even exists
if ($get('icon') !== null) {
return new HtmlString(Blade::render('<x-heroicon-' . $get('icon') . ' class="h-8" />'));
}else{
return null;
}
}),
]); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would be great if we could assign blade ui icons to the navigation items. Right now i have all my navigations converted and using this package, but cant convert my mobile menu until I can use icons with them, so i kind of have a half converted nav, which might lead to more confusion. lol
Beta Was this translation helpful? Give feedback.
All reactions