我可以将vue组件(如vue multiselect)插入/附加到datatable jquery吗?

hwamh0ep  于 2021-09-13  发布在  Java
关注(0)|答案(0)|浏览(260)

很好的一天,
我想问一下,是否可以在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>');
            })
       }

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题