<script>
import Vue from 'vue';
import JQuery from 'jquery';
import { DropDownListPlugin } from "@syncfusion/ej2-vue-dropdowns";
Vue.use(DropDownListPlugin);
let $ = JQuery;
var searchData = [
{ Index: "s1", Country: "Alaska" }, { Index: "s2", Country: "California" },
{ Index: "s3", Country: "Florida" }, { Index: "s4", Country: "Georgia" }
];
export default {
name: 'HelloWorld',
data() {
return {
dataSource : searchData,
fields : { text: "Country", value: "Index" },
allowFiltering: true,
showClearButton: true
}
},
methods: {
filtering: function(e) {
e.updateData(searchData);
}
},
mounted(){
$('#exampleModal').on('shown.bs.modal', function () {
$(document).off('focusin.modal');
});
},
}
</script> |
mounted() {
setTimeout(() => {
this.dataSource = searchData;
this.$refs.drop.ej2Instances.value = 's3';
}, 1000);
}, |