Custom page layout divide in 3 columns

I created custom page and want to split page content into 3 columns? I try all of tailwinds flex/grids, etc.., nothing works. Is there is some way to implement this?
13 Replies
LeandroFerreira
LeandroFerreira3mo ago
if you are using classes that are not already used in Blade files, you should customize a theme https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
AlexAnder
AlexAnder3mo ago
<x-filament-panels::page>
<x-filament::section>
<form wire:submit="search_by_code">
<div class="flex gap-4">
<div class="flex flex-col">
<x-filament::input.wrapper :valid="! $errors->has('id_code')">
<x-filament::input
type="text"
wire:model="id_code"
/>
</x-filament::input.wrapper>
<div>
@error('id_code') <span class="text-danger-600">{{ $message }}</span> @enderror
</div>
</div>
<div class="flex">{{ $atrada }}</div>
<div class="flex">{{ $atrada }}</div>
</div>
</form>
</x-filament::section>
</x-filament-panels::page>
<x-filament-panels::page>
<x-filament::section>
<form wire:submit="search_by_code">
<div class="flex gap-4">
<div class="flex flex-col">
<x-filament::input.wrapper :valid="! $errors->has('id_code')">
<x-filament::input
type="text"
wire:model="id_code"
/>
</x-filament::input.wrapper>
<div>
@error('id_code') <span class="text-danger-600">{{ $message }}</span> @enderror
</div>
</div>
<div class="flex">{{ $atrada }}</div>
<div class="flex">{{ $atrada }}</div>
</div>
</form>
</x-filament::section>
</x-filament-panels::page>
AlexAnder
AlexAnder3mo ago
I need search imput and on submit return portrait
LeandroFerreira
LeandroFerreira3mo ago
could you share a screenshot with the result?
AlexAnder
AlexAnder3mo ago
In result I want like that:
No description
LeandroFerreira
LeandroFerreira3mo ago
your code should show this.. what is the issue?
AlexAnder
AlexAnder3mo ago
Screenshot is from dashboard->filterForms But I want to create custom page, where portraits shows from <img src="">... not fileupload Dashboard filterForms doesn't have form with submit and show the result in the same page
LeandroFerreira
LeandroFerreira3mo ago
Your first question was I created custom page and want to split page content into 3 columns? This will create 3 columns 🤷‍♂️
<div class="flex gap-4">
<div>One</div>
<div>Two</div>
<div>Three</div>
</div>
<div class="flex gap-4">
<div>One</div>
<div>Two</div>
<div>Three</div>
</div>
AlexAnder
AlexAnder3mo ago
different sizes..
<div class="flex gap-4">
<div class="size 1/4">One</div>
<div class="size 2/4">Two</div>
<div class="size 1/4">Three</div>
</div>
<div class="flex gap-4">
<div class="size 1/4">One</div>
<div class="size 2/4">Two</div>
<div class="size 1/4">Three</div>
</div>
LeandroFerreira
LeandroFerreira3mo ago
use tailwind to achieve it. If you are using different classes, customize a theme as I told you here: https://discord.com/channels/883083792112300104/1230500202381705218/1230500997953093772
AlexAnder
AlexAnder3mo ago
Thanks. Thanks for Your time.