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:
Diffstat (limited to 'plugins/CorePluginsAdmin/vue/src/FormField/FieldHidden.vue')
-rw-r--r--plugins/CorePluginsAdmin/vue/src/FormField/FieldHidden.vue35
1 files changed, 35 insertions, 0 deletions
diff --git a/plugins/CorePluginsAdmin/vue/src/FormField/FieldHidden.vue b/plugins/CorePluginsAdmin/vue/src/FormField/FieldHidden.vue
new file mode 100644
index 0000000000..38c5ee248a
--- /dev/null
+++ b/plugins/CorePluginsAdmin/vue/src/FormField/FieldHidden.vue
@@ -0,0 +1,35 @@
+<!--
+ Matomo - free/libre analytics platform
+ @link https://matomo.org
+ @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
+-->
+
+<template>
+ <div>
+ <input
+ :type="uiControl"
+ :name="name"
+ :value="modelValue"
+ @change="onChange($event)"
+ />
+ </div>
+</template>
+
+<script lang="ts">
+import { defineComponent } from 'vue';
+
+export default defineComponent({
+ props: {
+ modelValue: null,
+ uiControl: String,
+ name: String,
+ },
+ inheritAttrs: false,
+ emits: ['update:modelValue'],
+ methods: {
+ onChange(event: Event) {
+ this.$emit('update:modelValue', (event.target as HTMLInputElement).value);
+ },
+ },
+});
+</script>