Enabling scrollY depending on data attributes of table
Enabling scrollY depending on data attributes of table
Hi!
New to datatables here! Currently, I have 2 datatables with similar settings (such as horizontal scrolling enabled and pagination disabled). However, one allows for vertical scrolling while the other doesn't. I wish to use the same set of initialisation for both datatables, but disable vertical scrolling for one of them. I tried to pass in a value for the scrollY option depending on the data-value attribute of the table. However, I have yet to find a way of disabling it when the scrollY option is defined (scrollY: false did not work). I also could not change the settings after the table was initialised (as scrollY is not in the datatables API).
Does anyone have a solution to this? Thanks so much!