You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use the 'Floating Theme' use the `floating()` method when instantiating the plugin.
38
38
39
-
This is the contents of the published config file:
39
+
When using the floating theme you can also use the `colored()` method to add your primary background color to the footer.
40
40
41
41
```php
42
-
return [
43
-
];
42
+
use UnexpectedJourney\FilamentStickyResourceFormFooters\FilamentStickyResourceFormFootersPlugin;
43
+
44
+
45
+
public function panel(Panel $panel): Panel
46
+
{
47
+
return $panel
48
+
->plugins([
49
+
FilamentStickyResourceFormFootersPlugin::make()
50
+
->floating()
51
+
->colored()
52
+
])
53
+
]);
54
+
}
44
55
```
45
56
46
-
## Usage
57
+
Both the `floating()` and `colored()` methods can receive closure that will be evaluated to determine if the theme should be applied. This allows you to apply the theme conditionally, for instance, based off of user preferences.
47
58
48
59
```php
49
-
$filamentStickyResourceFormFooters = new UnexpectedJourney\FilamentStickyResourceFormFooters();
0 commit comments