Skip to content

Commit 467e03b

Browse files
feat: update config options
1 parent 9bc5442 commit 467e03b

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

config/filament-page-hints.php

+21
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,27 @@
2828
* Use this option to control whether you want to show the page hint resource in the navigation.
2929
*/
3030
'show_resource_in_navigation' => true,
31+
32+
/**
33+
* Specify the sort order of the page hint in the navigation menu.
34+
*/
35+
'navigation_sort' => null,
36+
37+
/**
38+
* Add a badge to the navigation
39+
*/
40+
'navigation_badge' => null,
41+
42+
/**
43+
* Color of the badge in the navigation
44+
*/
45+
'navigation_badge_color' => null,
46+
47+
/**
48+
* The group of the filament page hint navigation menu item
49+
*/
50+
'navigation_group' => null,
51+
3152
/**
3253
* Rich Text Editor used for hints toolbar buttons can be edited here.
3354
*/

src/Resources/PageHintsResource.php

+20
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,26 @@ protected static function shouldRegisterNavigation(): bool
2323
return config('filament-page-hints.show_resource_in_navigation', true);
2424
}
2525

26+
protected static function getNavigationSort(): ?int
27+
{
28+
return config('filament-page-hints.navigation_sort', null);
29+
}
30+
31+
protected static function getNavigationBadge(): ?string
32+
{
33+
return config('filament-page-hints.navigation_badge', null);
34+
}
35+
36+
protected static function getNavigationBadgeColor(): ?string
37+
{
38+
return config('filament-page-hints.navigation_badge_color', null);
39+
}
40+
41+
protected static function getNavigationGroup(): ?string
42+
{
43+
return config('filament-page-hints.navigation_group', null);
44+
}
45+
2646
public static function form(Form $form): Form
2747
{
2848
return $form

0 commit comments

Comments
 (0)