PHP code example of cocosmos / filament-sticky-save-bar
1. Go to this page and download the library: Download cocosmos/filament-sticky-save-bar library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cocosmos / filament-sticky-save-bar example snippets
use Cocosmos\FilamentStickySaveBar\StickySaveBarPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugin(StickySaveBarPlugin::make());
}
StickySaveBarPlugin::make()
->label('You have unsaved changes')
use Cocosmos\FilamentStickySaveBar\Enums\Position;
StickySaveBarPlugin::make()
->position(Position::Top)
use Cocosmos\FilamentStickySaveBar\Enums\ShowOn;
StickySaveBarPlugin::make()
->showOn(ShowOn::Always)