[fix] headerDropdown option merge

This commit is contained in:
Faris Ansari 2018-05-18 12:18:30 +05:30
parent a64c51bfdf
commit c61e53da8c

View File

@ -45,8 +45,11 @@ class DataTable {
this.options || {}, options
);
this.options.headerDropdown
.push(...(options.headerDropdown || []));
options.headerDropdown = options.headerDropdown || [];
this.options.headerDropdown = [
...DEFAULT_OPTIONS.headerDropdown,
...options.headerDropdown
];
// custom user events
this.events = Object.assign(