tabulator
tabulator copied to clipboard
setLocale initialize groupHeader to default
Describe the bug setLocale makes groupHeader to default. I guess this function make initialize groupHeader when I call setLocale
self.table.modules.localize.bind("groups|item", function (langValue, lang) {
self.headerGenerator[0] = function (value, count, data) {
//header layout function
return (typeof value === "undefined" ? "" : value) + "<span>(" + count + " " + (count === 1 ? langValue : lang.groups.items) + ")</span>";
};
});
Tabulator Info
- I found bug at 4.8.4 but 6.3.1 has same issue.
Working Example https://jsfiddle.net/hnk8mo26/1/
To Reproduce
- Go to JSFiddle link
- Check custom groupHeader text
- Click 'Set Locale'
- See custom groupHeader changed to default groupHeader.
Screenshots
Desktop (please complete the following information):
- OS: Windows
- Browser : Chrome
- Version : 132.0.6834.159 (64bit)