프로퍼티 |
타입 |
설명 |
|
$clientSideProperties |
|
The list of ViewDataTable properties that are 'Client Side Properties'. |
|
$columns_to_display |
|
Example: array('label', 'nb_visits', 'nb_uniq_visitors')
If this value is empty it will be defaulted to array('label', 'nb_visits') or
array('label', 'nb_uniq_visitors') if the report contains a nb_uniq_visitors column
after data is loaded. |
|
$controllerAction |
|
|
|
$controllerName |
|
|
|
$custom_parameters |
|
e.g. array('typeReferrer' => ...)
It can then be accessed in the twig templates by clientSideParameters.typeReferrer |
|
$datatable_css_class |
|
CSS class to use in the output HTML div. This is added in addition to the visualization CSS
class. |
|
$datatable_js_type |
|
The JavaScript class to instantiate after the result HTML is obtained. This class handles all
interactive behavior for the DataTable view. |
|
$description |
|
The report description. eg like a goal description |
|
$documentation |
|
Contains the documentation for a report. |
|
$enable_sort |
|
Controls whether the user can sort DataTables by clicking on table column headings. |
|
$export_limit |
|
Defaulted to the value of the [General] API_datatable_default_limit INI config option. |
|
$filters |
|
Priority filters are run before queued filters. These filters should be filters that
add/delete rows.
If a closure is used, the view is appended as a parameter. |
|
$footer_icons |
|
The value of this property must be an array of footer icon groups. Footer icon groups
have set of properties, including an array of arrays describing footer icons. For
example:
array(
array( // footer icon group 1
'class' => 'footerIconGroup1CssClass',
'buttons' => array(
'id' => 'myid',
'title' => 'My Tooltip',
'icon' => 'path/to/my/icon.png'
)
),
array( // footer icon group 2
'class' => 'footerIconGroup2CssClass',
'buttons' => array(...)
)
)
By default, when a user clicks on a footer icon, Piwik will assume the 'id' is
a viewDataTable ID and try to reload the DataTable w/ the new viewDataTable. You
can provide your own footer icon behavior by adding an appropriate handler via
DataTable.registerFooterIconHandler in your JavaScript code.
The default value of this property is not set here and will show the 'Normal Table'
icon, the 'All Columns' icon, the 'Goals Columns' icon and all jqPlot graph columns,
unless other properties tell the view to exclude them. |
|
$hide_annotations_view |
|
Controls whether annotations are shown or not. |
|
$metrics_documentation |
|
E.g. array('nb_visits' => '...', ...)
By default this is set to values retrieved from report metadata (via API.getReportMetadata API method). |
|
$overridableProperties |
|
The list of ViewDataTable properties that can be overriden by query parameters. |
|
$pivot_by_column |
|
The column to display in pivot tables. Defaults to the first non-label column if not specified. |
|
$pivot_by_dimension |
|
The ID of the dimension to pivot by when the 'pivot by subtable' option is clicked. Defaults
to the subtable dimension of the report being displayed. |
|
$pivot_dimension_name |
|
The human readable name of the pivot dimension. |
|
$related_reports |
|
Related reports are listed below a datatable view. When clicked, the original report will
change to the clicked report and the list will change so the original report can be
navigated back to. |
|
$related_reports_title |
|
"Related Reports" is displayed by default before listing the Related reports,
The string can be changed. |
|
$report_id |
|
|
|
$search_recursive |
|
If true, searching through the DataTable will search through all subtables. |
|
$self_url |
|
The URL used to request the report without generic filters. |
|
$show_all_views_icons |
|
Controls whether graph and non core viewDataTable footer icons are shown or not. |
|
$show_as_content_block |
boolean |
If enabled, shows the visualization as a content block. This is similar to wrapping your visualization
with a |
|
$show_bar_chart |
|
Controls whether the footer icon that allows users to view data as a bar chart is shown. |
|
$show_ecommerce |
|
Controls whether the 'Ecoommerce Orders'/'Abandoned Cart' footer icons are shown or not. |
|
$show_exclude_low_population |
|
Controls whether the 'Exclude Low Population' option (visible in the popup that displays after
clicking the 'cog' icon) is shown. |
|
$show_export_as_image_icon |
|
Controls whether to show the 'Export as Image' footer icon. |
|
$show_export_as_rss_feed |
|
Controls whether the user is allowed to export data as an RSS feed or not. |
|
$show_flatten_table |
|
Whether to show the 'Flatten' option (visible in the popup that displays after clicking the
'cog' icon). |
|
$show_footer |
|
Controls whether the entire view footer is shown. |
|
$show_footer_icons |
|
Controls whether the row that contains all footer icons & the limit selector is shown. |
|
$show_footer_message |
|
Stores an HTML message (if any) to display under the datatable view. |
|
$show_goals |
|
Controls whether the goals footer icon is shown. |
|
$show_insights |
|
Controls whether the 'insights' footer icon is shown. |
|
$show_limit_control |
|
Normally shown only if pagination is enabled. |
|
$show_offset_information |
|
Controls whether offset information (ie, '5-10 of 20') is shown under the datatable. |
|
$show_pagination_control |
|
Controls whether the 'prev'/'next' links are shown in the DataTable footer. These links
change the 'filter_offset' query parameter, thus allowing pagination. |
|
$show_pie_chart |
|
Controls whether the footer icon that allows users to view data as a pie chart is shown. |
|
$show_pivot_by_subtable |
|
Whether to show the 'Pivot by subtable' option (visible in the popup that displays after clicking
the 'cog' icon). |
|
$show_related_reports |
|
Controls whether a report's related reports are listed with the view or not. |
|
$show_search |
|
Controls whether the search box under the datatable is shown. |
|
$show_table |
|
Controls whether the footer icon that allows users to switch to the 'normal' DataTable view
is shown. |
|
$show_table_all_columns |
|
Controls whether the 'All Columns' footer icon is shown. |
|
$show_tag_cloud |
|
Controls whether the footer icon that allows users to view data as a tag cloud is shown. |
|
$show_title |
boolean |
If enabled shows the title of the report. |
|
$show_visualization_only |
|
Controls whether the buttons and UI controls around the visualization or shown or
if just the visualization alone is shown. |
|
$subtable_controller_action |
|
By default, this is set to the controller action used to request the report. |
|
$title |
|
This must be set if related reports are added. |
|
$title_edit_entity_url |
string |
If a URL is set, the title of the report will be clickable. Is supposed to be set for entities that can be
configured (edited) such as goal. Eg when there is a goal report, and someone is allowed to edit the goal entity,
a link is supposed to be with a URL to the edit goal form. |
|
$tooltip_metadata_name |
|
Row metadata name that contains the tooltip for the specific row. |
|
$translations |
|
The default value for this property is set elsewhere. It will contain translations
of common metrics. |
|
$y_axis_unit |
|
The unit of the displayed column. Valid if only one non-label column is displayed. |
|