How can I get display the schema of a custom View?

Currently, the docs mention that we "may pass an array of child schema components to the schema() method of the component" here: https://filamentphp.com/docs/4.x/schemas/custom-components#rendering-the-components-child-schema I have a custom component that I call like this
View::make('filament.schemas.components.uploaded-document-row')
->schema([
Action::make('test')
->icon('heroicon-o-file-text')
->iconButton(),
])
View::make('filament.schemas.components.uploaded-document-row')
->schema([
Action::make('test')
->icon('heroicon-o-file-text')
->iconButton(),
])
But when I refresh the page, I get the following error. Am I missing something? I am on the latest version of the panel
No description
Solution:
I am using it in a livewire component. I did find the issue, it was being imported from the wrong namespace. 🤦🏿‍♂️ Thanks for the guidance, it might've taken me a while to figure that one out...
Jump to solution
2 Replies
skeemer
skeemer6d ago
Where you are you using the View::make(), infolist, form, table? Also with that, what's the use statement for View.
Solution
nerdroid
nerdroid6d ago
I am using it in a livewire component. I did find the issue, it was being imported from the wrong namespace. 🤦🏿‍♂️ Thanks for the guidance, it might've taken me a while to figure that one out

Did you find this page helpful?