Hi, in the header of a View page I would like to display 3 widgets: 1 'normal' widget and 2 Stat widgets (see screenshot). Is there a way to display them next to each other, in 1 row?
This is the
getHeaderWidgets()
getHeaderWidgets()
method currently:
public function getHeaderWidgets(): array { return [ NormalWidget::class, StatsWidgets::class, ]; }
public function getHeaderWidgets(): array { return [ NormalWidget::class, StatsWidgets::class, ]; }
Solution
try edit the columnSpan property of the widget for example
// ViewResource.php public function getHeaderWidgetsColumns(): int|string|array { return 3; }
// ViewResource.php public function getHeaderWidgetsColumns(): int|string|array { return 3; }