PHP code example of emuniq / filament-scrollable-topnav
1. Go to this page and download the library: Download emuniq/filament-scrollable-topnav 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/ */
emuniq / filament-scrollable-topnav example snippets
use Emuniq\FilamentScrollableTopnav\ScrollableTopnavPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->topNavigation()
->plugins([
ScrollableTopnavPlugin::make(),
]);
}
ScrollableTopnavPlugin::make()
->fadeSize('48px')
->scrollSnap()
->wheelToScroll(false), // disable on a panel that already uses wheel for something else
bash
php artisan scrollable-topnav:install
npm run build