fixedColumns().relayout is not a function

fixedColumns().relayout is not a function

AliaksandrAliaksandr Posts: 6Questions: 3Answers: 0

Description of problem:
I got package via download builder
"Included libraries: DataTables 1.13.8, Buttons 2.4.2, Column visibility 2.4.2, HTML5 export 2.4.2, ColReorder 1.7.0, FixedColumns 4.3.0, Responsive 2.5.0, RowReorder 1.4.1"

the code that is set as example of fixedColumns().relayout() causes an error

$.fn.dataTable
    .tables( { visible: true, api: true } )
    .columns.adjust()
    .fixedColumns().relayout();

Uncaught TypeError: $.fn.dataTable.tables(...).columns.adjust(...).fixedColumns(...).relayout is not a function
at HTMLDocument.<anonymous> (main.js:53:25)
at j (jquery-3.2.0.min.js:2:29999)
at k (jquery-3.2.0.min.js:2:30313)

Answers

  • allanallan Posts: 61,044Questions: 1Answers: 9,955 Site admin

    Its a legacy function that and no longer present in the code (as of FixedColumns 4). It isn't in the main documentation any more and the old doc page is just left hanging.

    You are safe to just remove the .fixedColumns().relayout() call.

    Allan

  • AliaksandrAliaksandr Posts: 6Questions: 3Answers: 0

    Allan, thank you for the answer

Sign In or Register to comment.