diff options
author | diosmosis <benaka@piwik.pro> | 2014-09-20 01:16:01 +0400 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-09-20 01:16:01 +0400 |
commit | cc74e8efef3f821f4f23742ccfee018b2bcbe6d8 (patch) | |
tree | b610a84d36d82638fe65c518006ef7a74bd6f20a /core/ViewDataTable | |
parent | b5196b8f3d97e031566084720ae6dd5e42f0e115 (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.php | 8 |
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. */ |