Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145729 | Jul 5,2019 10:09 AM UTC | Jul 10,2019 11:31 AM UTC | Vue | 3 |
![]() |
Tags: DropDownList |
<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> |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.