<template>
<div class="control_wrapper">
<div class="col-lg-12 content-wrapper" style="height: 350px">
<div id='content' style="margin: 0 auto; width:20%; padding-top: 30px">
<ejs-dropdownlist id='dropdownlist' :close="onClose" :dataSource='sportsData' :open="onOpen">
</ejs-dropdownlist>
</div>
</div>
</div>
</template>
<script>
import Vue from 'vue';
import { DropDownListPlugin } from "@syncfusion/ej2-vue-dropdowns";
Vue.use(DropDownListPlugin);
export default Vue.extend({
data: function () {
return {
sportsData: ['Badminton', 'Cricket', 'Football', 'Golf', 'Tennis']
};
},
methods: {
onOpen: function (args) {
window.addEventListener('resize', (e) => {
args.popup.refresh();
})
},
onClose() {
window.removeEventListener("resize", null);
}
}
});
</script> |
<script type="text/javascript">
$(function () {
$('#modalMSDDL').on('shown.bs.modal', function () {
$(document).off('focusin.modal');
});
})
</script> |