File tree Expand file tree Collapse file tree 4 files changed +28
-4
lines changed
Expand file tree Collapse file tree 4 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 5454 'hover': index == -1,
5555 } "
5656 >
57- Press enter to add: < b > {{ input }}</ b >
57+ {{ pressEnterLabel }} < b > {{ input }}</ b >
5858 </ li >
5959
6060 < li class ="fire-select-item " v-if ="tips.length == 0 && ! create ">
61- No results found for: < b > {{ input }}</ b >
61+ {{ noResultsLabel }} < b > {{ input }}</ b >
6262 </ li >
6363
6464 < li
@@ -92,6 +92,8 @@ <h3>Fireselect</h3>
9292 :animation ="animation "
9393 :helper-message ="helperMessage "
9494 :placeholder ="placeholder "
95+ :press-enter-label ="pressEnterLabel "
96+ :no-results-label ="noResultsLabel "
9597 > </ fire-select >
9698
9799 < hr >
@@ -137,6 +139,16 @@ <h3>Props</h3>
137139 Placeholder
138140 < input type ="text " v-model ="placeholder ">
139141 </ label >
142+
143+ < label >
144+ Press Enter Label
145+ < input type ="text " v-model ="pressEnterLabel ">
146+ </ label >
147+
148+ < label >
149+ No Results Label
150+ < input type ="text " v-model ="noResultsLabel ">
151+ </ label >
140152 </ div >
141153 </ div >
142154
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ var vm = new Vue({
2020 animation : true ,
2121 helperMessage : 'Type anything to search' ,
2222 placeholder : 'Select an item' ,
23+ pressEnterLabel : 'Press enter to add:' ,
24+ noResultsLabel : 'No results found for:' ,
2325 } ,
2426
2527 events : {
Original file line number Diff line number Diff line change 4343 'hover': index == -1,
4444 } "
4545 >
46- Press enter to add: < b > {{ input }}</ b >
46+ {{ pressEnterLabel }} < b > {{ input }}</ b >
4747 </ li >
4848
4949 < li class ="fire-select-item " v-if ="tips.length == 0 && ! create ">
50- No results found for: < b > {{ input }}</ b >
50+ {{ noResultsLabel }} < b > {{ input }}</ b >
5151 </ li >
5252
5353 < li
Original file line number Diff line number Diff line change @@ -39,6 +39,16 @@ Vue.component('fire-select', {
3939 }
4040 } ,
4141
42+ pressEnterLabel : {
43+ type : String ,
44+ default : 'Press enter to add:'
45+ } ,
46+
47+ noResultsLabel : {
48+ type : String ,
49+ default : 'No results found for:'
50+ } ,
51+
4252 animation : {
4353 type : Boolean ,
4454 default : true
You can’t perform that action at this time.
0 commit comments