File tree 2 files changed +41
-0
lines changed
2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 28
28
* Use this option to control whether you want to show the page hint resource in the navigation.
29
29
*/
30
30
'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
+
31
52
/**
32
53
* Rich Text Editor used for hints toolbar buttons can be edited here.
33
54
*/
Original file line number Diff line number Diff line change @@ -23,6 +23,26 @@ protected static function shouldRegisterNavigation(): bool
23
23
return config ('filament-page-hints.show_resource_in_navigation ' , true );
24
24
}
25
25
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
+
26
46
public static function form (Form $ form ): Form
27
47
{
28
48
return $ form
You can’t perform that action at this time.
0 commit comments