olifolkerd / tabulator

Interactive Tables and Data Grids for JavaScript
http://tabulator.info
MIT License
6.76k stars 821 forks source link

Broken functionality between: 4.9 and 6.3: tableBuilding callback #4626

Open KES777 opened 1 week ago

KES777 commented 1 week ago

Describe the bug https://tabulator.info/docs/6.3/lifecycle#initialization

Tabulator Info

Working Example

<div id="customized-table"></div>
<script>
new Tabulator( '#customized-table', {
  tableBuilding: function(){ alert( 'sdfa' ) },
});
</script>

In previous versions I could write:

let opts =  Tabulator.defaultOptions;
opts.tableBuilding  = initLookups;

And all my tables receive some initialization. But now in all places in the code I need to write:

let t = new Tabolator(...);
t.on("tableBuilding", initLookups);

which is not convenient.

To Reproduce

  1. Run the example
  2. tableBuilding callback is not fired.

Expected behavior I should see alert.

Screenshots image

Desktop (please complete the following information):