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:
authorVictor S <32728904+ulcuber@users.noreply.github.com>2022-07-15 16:38:33 +0300
committerGitHub <noreply@github.com>2022-07-15 16:38:33 +0300
commit82f5defa1792e99e3eceac4a3f47ba4486703cf2 (patch)
tree472866ee15161464800fd63de6f56047300b7344 /core
parent835ba7dde8478e1da299fe08f306e16f67a5c8cc (diff)
Full width field in settings (#19454)
* added: full width field in settings * removed fixed width for full width multi pair * added: full width multi pair demo
Diffstat (limited to 'core')
-rw-r--r--core/Settings/FieldConfig.php8
-rw-r--r--core/Settings/FieldConfig/MultiPair.php2
2 files changed, 9 insertions, 1 deletions
diff --git a/core/Settings/FieldConfig.php b/core/Settings/FieldConfig.php
index a74878757c..f1badcb135 100644
--- a/core/Settings/FieldConfig.php
+++ b/core/Settings/FieldConfig.php
@@ -147,6 +147,14 @@ class FieldConfig
public $uiControlAttributes = array();
/**
+ * Makes field full width.
+ * Useful for `$field->uiControl = FieldConfig::UI_CONTROL_MULTI_TUPLE;`
+ *
+ * @var bool
+ */
+ public $fullWidth = false;
+
+ /**
* The list of all available values for this setting. If null, the setting can have any value.
*
* If supplied, this field should be an array mapping available values with their prettified
diff --git a/core/Settings/FieldConfig/MultiPair.php b/core/Settings/FieldConfig/MultiPair.php
index 22788e76b4..01bd022293 100644
--- a/core/Settings/FieldConfig/MultiPair.php
+++ b/core/Settings/FieldConfig/MultiPair.php
@@ -14,7 +14,7 @@ namespace Piwik\Settings\FieldConfig;
*
* Usage:
*
- * $field->uiControl = FieldConfig::UI_CONTROL_MULTI_PAIR;
+ * $field->uiControl = FieldConfig::UI_CONTROL_MULTI_TUPLE;
* $field1 = new FieldConfig\MultiPair('Index', 'index', FieldConfig::UI_CONTROL_TEXT);
* $field2 = new FieldConfig\MultiPair('Value', 'value', FieldConfig::UI_CONTROL_TEXT);
* $field->uiControlAttributes['field1'] = $field1->toArray();