File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ Insert the following selector anywhere in your project (global) or in your exist
55
55
| ** width** | number | Determines the width of the dropdown button & options drawer |
56
56
| ** placeholder** | string | The text shown on the dropdown button by default |
57
57
| ** prefix** | string | A text prefix that will be added before the placeholder text |
58
+ | ** disabled** | boolean | Set true if the dropdown should be disabled |
58
59
59
60
## Customized Styling
60
61
@@ -64,6 +65,8 @@ Insert the following selector anywhere in your project (global) or in your exist
64
65
| ** hoverBackgroundColor** | string | Set the dropdown button & options hover background color |
65
66
| ** border** | string | Set the dropdown button & options border |
66
67
| ** textColor** | string | Set the dropdown button & options text color |
68
+ | ** disabledBackgroundColor** | string | Set the disabled dropdown button background color |
69
+ | ** disabledTextColor** | string | Set the disabled dropdown button text color |
67
70
68
71
## Events
69
72
| Event Name | Returns | Description |
@@ -93,7 +96,8 @@ data: function() {
93
96
},
94
97
],
95
98
prefix: " The" ,
96
- backgroundColor: " green"
99
+ backgroundColor: " green" ,
100
+ disabled: false ,
97
101
}
98
102
}
99
103
}
Original file line number Diff line number Diff line change 2
2
$default-text-hover-color : black ;
3
3
$default-hover-color : #cde4f5 ;
4
4
$default-text-color : #fff ;
5
- $disabled-text-color : #555 ;
6
5
$option-padding : 4px 10px ;
7
6
8
7
.dropdown {
@@ -82,7 +81,6 @@ $option-padding: 4px 10px;
82
81
}
83
82
84
83
& .disabled {
85
- color : $disabled-text-color ;
86
84
cursor : not-allowed ;
87
85
}
88
86
}
Original file line number Diff line number Diff line change 48
48
backgroundExpandedColor: " #fff" ,
49
49
hoverBackgroundColor: " #0084d4" ,
50
50
disabledBackgroundColor: " #ccc" ,
51
+ disabledTextColor: " #555" ,
51
52
isExpanded: false ,
52
53
placeholder: " Placeholder" ,
53
54
textColor: " black" ,
70
71
{" --dropdown-expanded-color" : this .backgroundExpandedColor },
71
72
{" --dropdown-border" : this .border },
72
73
{" --dropdown-hover-background-color" : this .hoverBackgroundColor },
73
- {" --dropdown-default-text-color" : this .textColor }
74
+ {" --dropdown-default-text-color" : this . config . disabled ? this . disabledTextColor : this .textColor }
74
75
];
75
76
}
76
77
},
You can’t perform that action at this time.
0 commit comments