Ashi Ashi~
Explore posts from serversNuxt 3 Layout
In Nuxt 3, I have the following structure in my
Is this approach valid, or am I doing something wrong?
app.vue
:
For one of my pages, I set the layout to false
inside the definePageMeta
and used the following structure:
My main goal is to use a named slot within the history-details
layout. However, if I set layout: "history-details"
in definePageMeta
, I cannot leverage the named slot. That’s why I am using this structure instead, based on the Nuxt documentation on overriding layouts.Is this approach valid, or am I doing something wrong?
5 replies
Question: How to Customize Filament File Upload Card Layout with Switch for Marking as Main
I'm working on a Filament form to handle file uploads, specifically for images. I need to customize the layout of each uploaded image's card to include an input switch (or a toggle) for adding labels or marking the image as the main image.
The goal is:
To add an input switch to each image card that lets me mark the image as the main one.
Possibly allow the user to add a label to the image using a simple text field or toggle switch.
Has anyone done something similar, or can anyone point me in the right direction? I'm looking for guidance on how to override the default layout of the image cards and implement these custom inputs.
Filament version: 3.x
Laravel Version: 11
Thank you in advance!
2 replies