File tree 2 files changed +18
-0
lines changed
frontend/express/public/javascripts/countly/vue
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 409
409
template : CV . T ( '/javascripts/countly/vue/templates/content/UI/content-sidebar-input.html' ) ,
410
410
411
411
props : {
412
+ componentTooltip : {
413
+ default : null ,
414
+ type : String
415
+ } ,
416
+
412
417
disabled : {
413
418
default : false ,
414
419
type : Boolean
468
473
type : String
469
474
} ,
470
475
476
+ withComponentTooltip : {
477
+ default : false ,
478
+ type : Boolean
479
+ } ,
480
+
471
481
withLabelTooltip : {
472
482
default : false ,
473
483
type : Boolean
537
547
538
548
mainComponent ( ) {
539
549
return COUNTLY_CONTENT_SIDEBAR_INPUT_COMPONENT_BY_TYPE [ this . type ] || 'div' ;
550
+ } ,
551
+
552
+ tooltip ( ) {
553
+ if ( this . withComponentTooltip ) {
554
+ return this . componentTooltip || null ;
555
+ }
556
+ return null ;
540
557
}
541
558
}
542
559
} ) ) ;
Original file line number Diff line number Diff line change 28
28
:is ="mainComponent "
29
29
v-bind ="$attrs "
30
30
v-model ="componentValue "
31
+ v-tooltip.left ="tooltip "
31
32
class ="cly-vue-content-builder-sidebar-input__component "
32
33
:class ="{ 'cly-vue-content-builder-sidebar-input__component--slider': isSliderInput } "
33
34
:controls ="controlsProp "
You can’t perform that action at this time.
0 commit comments