[fix] headerDropdown option merge
This commit is contained in:
parent
a64c51bfdf
commit
c61e53da8c
@ -45,8 +45,11 @@ class DataTable {
|
|||||||
this.options || {}, options
|
this.options || {}, options
|
||||||
);
|
);
|
||||||
|
|
||||||
this.options.headerDropdown
|
options.headerDropdown = options.headerDropdown || [];
|
||||||
.push(...(options.headerDropdown || []));
|
this.options.headerDropdown = [
|
||||||
|
...DEFAULT_OPTIONS.headerDropdown,
|
||||||
|
...options.headerDropdown
|
||||||
|
];
|
||||||
|
|
||||||
// custom user events
|
// custom user events
|
||||||
this.events = Object.assign(
|
this.events = Object.assign(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user