ahloudev
ahloudev
FFilament
Created by neverender24 on 9/13/2023 in #❓┊help
How to retain sidebar scroll position if there are many menu items.
Add this inside AppserviceProvider class at boot() method FilamentView::registerRenderHook( 'panels::body.end', fn (): View => view('additional-scripts'), ); And inside resources/views/additional-scripts.blade.php file, add this <script> const sidebarNav = document.querySelector('.fi-sidebar-nav'); const SCROLL_POSITION_KEY = 'SIDEBAR_SCROLL_TOP'; window.addEventListener('DOMContentLoaded', () => { sidebarNav.scrollBy(0, Number(window.localStorage.getItem(SCROLL_POSITION_KEY) || 0)) Array.from(document.querySelectorAll('.fi-sidebar-item-button')).forEach(sidebarItem => { sidebarItem.addEventListener('click', e => { const scrollTop = sidebarNav.scrollTop; window.localStorage.setItem(SCROLL_POSITION_KEY, scrollTop); }); }); }); </script>
3 replies
FFilament
Created by ahloudev on 11/7/2023 in #❓┊help
how to display items (not model items) in filament table
thank you
7 replies
FFilament
Created by ahloudev on 11/7/2023 in #❓┊help
how to display items (not model items) in filament table
Thanks that helps me a lot
7 replies
FFilament
Created by ahloudev on 11/3/2023 in #❓┊help
How to manage users in multi tenant app
I specify that it is a management application for a educational institution where each school year has its own data (students, teachers, courses, subjects, schedule, etc.).
6 replies
FFilament
Created by ahloudev on 11/3/2023 in #❓┊help
How to manage users in multi tenant app
i generated UserResource inside my multi tenant app but i got exception that says i should have school_year_id in my users table since SchoolYear is a tenant model in this context
So i added that column to the users table and also added schoolYear(): belongsTo relationship to User model and that fixed the issue but i'm not sure that's the right way to implement user management inside multi tenant application
6 replies
FFilament
Created by ahloudev on 3/14/2023 in #❓┊help
How to add loading indicator at the top of the filamentphp app page
Thanks you for your help. Il will try this
21 replies
FFilament
Created by ahloudev on 3/14/2023 in #❓┊help
How to add loading indicator at the top of the filamentphp app page
no i did not
21 replies
FFilament
Created by ahloudev on 3/14/2023 in #❓┊help
How to add loading indicator at the top of the filamentphp app page
sorry for late response
21 replies
FFilament
Created by ahloudev on 3/14/2023 in #❓┊help
How to add loading indicator at the top of the filamentphp app page
i'm sorry for disturbing you about this.
21 replies
FFilament
Created by ahloudev on 3/14/2023 in #❓┊help
How to add loading indicator at the top of the filamentphp app page
i also add <div wire:loading>Loading...</div> in components/page.blade.php (one of the filamentphp component) but it does not work also.
21 replies
FFilament
Created by ahloudev on 3/14/2023 in #❓┊help
How to add loading indicator at the top of the filamentphp app page
i added this <div wire:loading>Loading...</div> in 'body.start' render hook but if i make a request the loading element does not appear on the screen.
21 replies
FFilament
Created by ahloudev on 3/14/2023 in #❓┊help
How to add loading indicator at the top of the filamentphp app page
THANKS. I'm going to look at this tool right away.
21 replies
FFilament
Created by ahloudev on 3/14/2023 in #❓┊help
How to add loading indicator at the top of the filamentphp app page
21 replies
FFilament
Created by ahloudev on 3/14/2023 in #❓┊help
How to add loading indicator at the top of the filamentphp app page
I installed a plugin for data export but every time I click on the 'Export' button there is no feedback. The modal box appears after a certain time suddenly without feedback from the interface
21 replies