comand-component-library 3.3.79 → 3.3.81

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,6 +52,15 @@ export default {
52
52
  type: String,
53
53
  required: false
54
54
  },
55
+ /**
56
+ * delay (in milliseconds) until tooltip will be shown
57
+ *
58
+ * toggleVisibilityByClick-property must be false
59
+ */
60
+ delayToShowTooltip: {
61
+ type: Number,
62
+ default: 0
63
+ },
55
64
  /**
56
65
  * id of related input-element
57
66
  */
@@ -114,6 +123,16 @@ export default {
114
123
  this.tooltipVisibility = !this.tooltipVisibility
115
124
  },
116
125
  showTooltip(event) {
126
+ // if delay is set
127
+ if (this.delayToShowTooltip > 0) {
128
+ setTimeout(() => {
129
+ this.toggleVisibility(event)
130
+ }, this.delayToShowTooltip)
131
+ } else {
132
+ this.toggleVisibility(event)
133
+ }
134
+ },
135
+ toggleVisibility(event) {
117
136
  if(!this.toggleVisibilityByClick) {
118
137
  this.tooltipVisibility = true
119
138
  }
@@ -580,7 +580,7 @@ export default {
580
580
  /**
581
581
  * properties for CmdHeadline-component shown if no file for upload exist
582
582
  */
583
- CmdHeadlineNoFileToUpload: {
583
+ cmdHeadlineNoFileToUpload: {
584
584
  type: Object,
585
585
  required: false
586
586
  },