Header Widgets on Pages not aligned in Grid correctly #10585
-
|
I want to add twoStat Widgets to the Header of a custom Page protected function getHeaderWidgets(): array
{
return [
AccountUsage::class,
SendUsage::class
];
}
public function getHeaderWidgetsColumns(): int | array
{
return 2;
}But instead of aligning side by side they align stacked I tried everything I found on the web
but no changes. What am I missing? |
Beta Was this translation helpful? Give feedback.
Answered by
simonjenny
Jan 1, 2024
Replies: 1 comment 1 reply
-
|
Alright I think I found it. Sorry but IMHO the Filament Documentations are .. not good. So to create this: I had to do a combination of:
public function getHeaderWidgetsColumns(): int
{
return 12;
}
protected int | string | array $columnSpan = '6';
protected function getColumns(): int
{
return 6;
}I am documenting this here for future Genrations ;) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
simonjenny
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Alright I think I found it. Sorry but IMHO the Filament Documentations are .. not good.
So to create this:
I had to do a combination of:
I am documenting this here for future Genrations ;)