0

Any one please suggest me how to make fixedHeader property working in vue.js with dataTables

vm.$nextTick(function() {
  currentTable.DataTable({
    "language": {
      "search": "Free Text Filter:"
    },
    fixedHeader: true,
  });
});
2
  • Welcome to stackoverflow. In the future, edit the question rather than adding code in comments. Commented Oct 17, 2017 at 9:35
  • have you tried using the constructor? datatables.net/extensions/fixedheader Commented Oct 17, 2017 at 10:06

1 Answer 1

0

Most probably you did not include css/js file for fixedHeader in your code. please include the link https://cdn.datatables.net/fixedheader/3.1.5/css/fixedHeader.bootstrap.css in head section of your page and this https://cdn.datatables.net/fixedheader/3.1.5/js/dataTables.fixedHeader.min.js in your script section. It may solve your problem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.