File tree 3 files changed +18
-3
lines changed
3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 527
527
template : CV . T ( '/javascripts/countly/vue/templates/UI/option-swapper.html' ) ,
528
528
529
529
props : {
530
+ disabled : {
531
+ default : false ,
532
+ type : Boolean
533
+ } ,
534
+
530
535
highlightOnSelect : {
531
536
default : true ,
532
537
type : Boolean
Original file line number Diff line number Diff line change 1
- <!-- :style="{'width': width + 'px'}" -->
2
- < div class ="cly-option-swapper ">
1
+ < div
2
+ class ="cly-option-swapper "
3
+ :class ="{
4
+ 'cly-option-swapper--disabled': disabled
5
+ } "
6
+ >
3
7
< div
4
8
v-for ="(option, index) in options "
5
9
:key ="`cly-option-swapper-option-${index}` "
6
10
v-tooltip ="option.tooltip "
7
11
class ="cly-option-swapper__option "
8
12
:class ="{
9
13
'cly-option-swapper__option--active': option.value === selectedOption,
10
- 'cly-option-swapper__option--disabled': option.disabled,
14
+ 'cly-option-swapper__option--disabled': option.disabled || disabled ,
11
15
'cly-option-swapper__option--first': index === 0,
12
16
'cly-option-swapper__option--last': index === (options.length - 1),
13
17
'cly-option-swapper__option--no-highlight': !highlightOnSelect
Original file line number Diff line number Diff line change 4829
4829
background : #F6F6F6 ;
4830
4830
}
4831
4831
}
4832
+
4833
+ // .cly-option-swapper--disabled
4834
+ & --disabled {
4835
+ cursor : not-allowed ;
4836
+ opacity : 0.5 ;
4837
+ }
4832
4838
}
4833
4839
4834
4840
.cly-list-drawer {
You can’t perform that action at this time.
0 commit comments