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
path: root/core
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-10-14 13:36:19 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-10-14 13:36:19 +0300
commite170bc571390652271766e4ed2c8db3bd43ea870 (patch)
tree315fb607871ea8accf5da454249d569b7674b779 /core
parent6aa4439f0f29b718bca6ff17f9676ed82856a18c (diff)
only add piwik-expand-on-click to the controls that need it
Diffstat (limited to 'core')
-rw-r--r--core/View/UIControl.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/View/UIControl.php b/core/View/UIControl.php
index 845d0f9d6a..dc5bca1279 100644
--- a/core/View/UIControl.php
+++ b/core/View/UIControl.php
@@ -60,6 +60,13 @@ class UIControl extends \Piwik\View
public $cssClass = "";
/**
+ * HTML Attributes for the root element
+ *
+ * @var string
+ */
+ public $htmlAttributes = array();
+
+ /**
* The inner view that renders the actual control content.
*
* @var View
@@ -125,6 +132,7 @@ class UIControl extends \Piwik\View
$this->templateVars['cssIdentifier'] = $this->cssIdentifier;
$this->templateVars['cssClass'] = $this->cssClass;
$this->templateVars['jsClass'] = $this->jsClass;
+ $this->templateVars['htmlAttributes'] = $this->htmlAttributes;
$this->templateVars['jsNamespace'] = $this->jsNamespace;
$this->templateVars['implOverride'] = $override;