From 88a0542d7dd6d315441f06f30c73e890fa3d7cbd Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Tue, 26 Nov 2024 15:02:54 +1100 Subject: [PATCH] Default max width --- src/Element/Dash/ReportDefinition.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Element/Dash/ReportDefinition.php b/src/Element/Dash/ReportDefinition.php index 5e866a527..b2e9d569a 100644 --- a/src/Element/Dash/ReportDefinition.php +++ b/src/Element/Dash/ReportDefinition.php @@ -9,7 +9,7 @@ * @method ReportDefinition label(string $label) label for this report * @method ReportDefinition type(string $type) type for display mode, eg: indicator, static * @method ReportDefinition row(int $row) row number where the report should be placed - * @method ReportDefinition width(int $width) width to display the report + * @method ReportDefinition width(int $width) width to display the report, between 1 - 20 range * @method ReportDefinition icon(string $icon) icon specifies an icon name for this report * @method ReportDefinition dimension(string $dimension) dimension name * @method ReportDefinition dataSource(string $dataSource) dataSource class name for obtaining report data @@ -34,6 +34,7 @@ protected function initDefaultValues() $this ->displayAs('static') ->metrics([]) + ->width(20) ->row(1) ; }