tabulator icon indicating copy to clipboard operation
tabulator copied to clipboard

setLocale initialize groupHeader to default

Open EnochG1 opened this issue 9 months ago • 0 comments

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

  1. Go to JSFiddle link
  2. Check custom groupHeader text
  3. Click 'Set Locale'
  4. See custom groupHeader changed to default groupHeader.

Screenshots

Desktop (please complete the following information):

  • OS: Windows
  • Browser : Chrome
  • Version : 132.0.6834.159 (64bit)

EnochG1 avatar Mar 19 '25 00:03 EnochG1