DataTables / FixedHeader

Fix the header, footer, left or right columns of a table in place, to always show them when scrolling
http://www.datatables.net/
Other
75 stars 83 forks source link

Adjust function doesn't exists (update) #66

Closed tomours closed 9 years ago

tomours commented 9 years ago

Hi, I've had a little issue while installing new version (3) of fixedheader. As I was trying, to use "adjust" function, which is referenced in the documentation (see http://datatables.net/reference/api/#fixedheader), my browser kept saying me "this function is not defined". It seems that the function is named "update" in the code, and not "adjust".

DataTables commented 9 years ago

It is definitely called fixedHeader.adjust().

Can you link to a test case showing the issue please.

tomours commented 9 years ago

Well, maybe I misunderstood the way it's supposed to work. What I did :

my_fixed_header_name = new $.fn.dataTable.FixedHeader(my_table_name, {some options});

and, at some other place I tried :

my_fixed_header_name.adjust();

that didn't work.

What worked for me :

my_fixed_header_name.update();

DataTables commented 9 years ago

I see - you are using the FixedHeader "internal" API. Although that is possible, I would recommend that you use the API that is exposed via the DataTables API, as shown in the documentation.

The internal API is not publicly documented.