Comments (2)
Adding the missing part is rendering correctly the panel
In view and edit page, If you want to show the relation managers and tabs, you need to copy the code form filament\resources\view\resources\pages\view-record
and filament\resources\view\resources\pages\edit-record
and paste it to your custom blade file.
Idea:
- is it maybe possible to overwrite the layout instead of using a specific view ?
- A dynamic call of the component that should have been called ?
Can you provide more details about your idea?
from filament-page-with-sidebar.
Yes, a copy of the code is a solution, but this means that if filament is updating something we will have to update evrything :(
Is it maybe possible to overwrite the layout instead of using a specific view ?
We have the possibility to overwrite the $view but also the $layout.
Maybe we can find a way to use the $layout, with a custom one (with the sidebar) that will (automatically) surround the current component + call the previous layout defined ?
I tried some simple code, but nothing very interesting here for now.
A dynamic call of the component that should have been called ?
This idea is to call dyamically the correct [View/Edit/...]Record page with the $this context parameter.
I found @livewire($componentName)
, <x-dynamic-component :component="$componentName" />
or even <livewire:is :component="$componentName" />
I tried some simple code, but nothing very interesting here for now.
Another idea (will test tonight), could be to call an @include of the corresponding view object (specified as constant or dynamically determined).
<x-filament-page-with-sidebar::page>
@include($this->getChildComponentView())
</x-filament-page-with-sidebar::page>
And getChildComponentView could be a ReflectionClass::getDefaultProperties to get the parent default value's $view of the component.
Just some idea :)
from filament-page-with-sidebar.
Related Issues (20)
- Keep side navigation on left HOT 1
- Filamet V3 HOT 6
- Documentation needs improvement. HOT 2
- demo project for filament v3? HOT 1
- License HOT 1
- Ideas : Add group & custom block & actions 1 topSideBar HOT 6
- [IDEA] Support custom pages HOT 4
- Issue with sm view HOT 2
- SetTitle() Light Mode HOT 4
- can i showing on index resource page bro? HOT 1
- Error when Showing on the listpage HOT 2
- Display/CSS Issue with Initial Setup HOT 1
- Set Active on Navigation Parent Page Main Sidebar when Child Page Active HOT 1
- Please upgrade to support laravel 11. HOT 1
- The active item loses the activity indication when working with components HOT 2
- I got conflict issue with File upload HOT 1
- SPA mode HOT 1
- wrong default layout in README file HOT 1
- Wrong calculate filament content in `sm` screen size
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filament-page-with-sidebar.