Skip to content

Commit

Permalink
Merge pull request #15 from LittleLama/patch-1
Browse files Browse the repository at this point in the history
Added all dt event emitters
  • Loading branch information
AllanJard committed Feb 8, 2023
2 parents 66c804a + 7f7bfc6 commit 60797ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/datatables.net-vue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@ onMounted(() => {
}
dt.value = new DataTablesLib(unref(table), options);
const dtEvents = ["childRow","column-sizing","column-visibility","destroy","draw","error","init","length","order","page","preDraw","preInit","preXhr","processing","requestChild","search","stateLoadParams","stateLoaded","stateSaveParams","xhr","autoFill","preAutoFill","buttons-action","buttons-processing","column-reorder","key","key-blur","key-focus","key-refocus","key-return-submit","responsive-display","responsive-resize","rowgroup-datasrc","pre-row-reorder","row-reorder","row-reordered","dtsb-inserted","deselect","select","select-blur","selectItems","selectStyle","user-select","stateRestore-change"];
for(let eName of dtEvents){
dt.value.on(eName,(event)=>{
this.$emit(eName,{event:event,dt:dt});
});
}
})
onBeforeUnmount(() => {
Expand Down

0 comments on commit 60797ca

Please sign in to comment.