很好的一天,
我想问一下,是否可以在datatable jquery中附加vue组件?这是我的示例代码
watch: function() {
this.$nextTick(() => {
this.datatable = $("#table_name").DataTable({
autoWidth: !1,
order: [],
stateSave: true,
language: {
search: "",
searchPlaceholder: "Type in to Search",
info: "_START_ -_END_ of _TOTAL_ Entries",
infoEmpty: "No records found",
infoFiltered: "( Total _MAX_ )",
paginate: {
first: "First",
last: "Last",
next: "Next",
previous: "Prev"
}
}
})
$(".dataTables_filter").append('<multiselect v-model = "onSelectStatus" :options="options" label="name" track-by="id" :searchable="true" placeholder="Select Status" selectLabel ="Click to Select"></multiselect>');
})
}
暂无答案!
目前还没有任何答案,快来回答吧!