File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed
src/components/DropdownList Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 99 <iv-increment-button :initialValue =" 2" :increment =" 1" :minimum =" min" :maximum =" max" > </iv-increment-button >
1010 <iv-toggle-advance id =" toggle2" :initialModeIndex =0 @toggleswitched =" sChange" position =" centre" ></iv-toggle-advance >
1111 <iv-toggle-advance id =" toggle3" :togglesDisabled =disableList :initialModeIndex =1 position =" centre" ></iv-toggle-advance >
12- <iv-tickbox ></iv-tickbox >
12+ <iv-tickbox ></iv-tickbox >
13+ <iv-dropdown-list :initialDropdownIndex =1 @dropdownelementclicked =" changeXlabel" ></iv-dropdown-list >
1314
1415 </iv-DraggableDiv >
1516 <iv-visualisation :title =" projectName" >
@@ -95,6 +96,10 @@ export default {
9596 },
9697 paneResize (e ){
9798 console .log (" new pane width: " , e)
99+ },
100+ changeXlabel (e ){
101+ console .log (" here" );
102+ console .log (e);
98103 }
99104 }
100105}
Original file line number Diff line number Diff line change 22 "name" : " @impvis/components" ,
33
44
5- "version" : " 1.4.6 " ,
5+ "version" : " 1.4.7 " ,
66
77
88
Original file line number Diff line number Diff line change 88</template >
99
1010<script >
11- import DropdownListElement from " ./DropdownListElement.vue"
11+ import DropdownListElement from " ./DropdownListElement.vue" ;
12+ import {eventBus } from " @/buses/eventBus" ;
1213export default {
1314 name: " iv-dropdown-list" ,
1415 components: {" iv-dropdown-list-element" : DropdownListElement},
@@ -52,7 +53,14 @@ export default {
5253 }
5354 this .$emit (" dropdownbuttonclicked" , e);
5455 }
55- }
56+ },
57+ mounted (){
58+ eventBus .$on (" reset-data" , data => {
59+ console .log (data);
60+ this .dropdownIndex = this .initialDropdownIndex ;
61+ this .$emit (" dropdownelementclicked" , this .dropdownIndex );
62+ });
63+ },
5664}
5765 </script >
5866
You can’t perform that action at this time.
0 commit comments