Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2014-09-20 01:16:01 +0400
committerdiosmosis <benaka@piwik.pro>2014-09-20 01:16:01 +0400
commitcc74e8efef3f821f4f23742ccfee018b2bcbe6d8 (patch)
treeb610a84d36d82638fe65c518006ef7a74bd6f20a /core/ViewDataTable
parentb5196b8f3d97e031566084720ae6dd5e42f0e115 (diff)
Refs #6078, allow plugins to set what metric gets displayed in pivot tables of specific reports and use in Events to display nb_events. Also do not set columns_to_display in Events plugin if table is pivoted.
Diffstat (limited to 'core/ViewDataTable')
-rw-r--r--core/ViewDataTable/Config.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/ViewDataTable/Config.php b/core/ViewDataTable/Config.php
index 0389c213fb..a2be3f6c96 100644
--- a/core/ViewDataTable/Config.php
+++ b/core/ViewDataTable/Config.php
@@ -86,7 +86,8 @@ class Config
*/
public $clientSideProperties = array(
'show_limit_control',
- 'pivot_by_dimension'
+ 'pivot_by_dimension',
+ 'pivot_by_column'
);
/**
@@ -201,6 +202,11 @@ class Config
public $pivot_by_dimension;
/**
+ * The column to display in pivot tables. Defaults to the first non-label column if not specified.
+ */
+ public $pivot_by_column = false;
+
+ /**
* Controls whether the footer icon that allows users to switch to the 'normal' DataTable view
* is shown.
*/