Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Is there a way to change "language" url or options at runtime? #1701

Unanswered
habtista-peco asked this question in Q&A
Discussion options

Let say that I have a table with the following initialization options:

this.dtOptions = {
   ...,
   language: {
          lengthMenu: 'Show _MENU_ entries',
          infoEmpty: 'Showing 0 to 0 of 0 entries',
          paginate: {
             first: 'First',
             last: 'Last',
             next: 'Next',
             previous: 'Previous',
          },
      }
};

How can I change the dtOptions language.lengthMenu to 'Afficher MENU entrées' and have the dataTable apply the changes?

You must be logged in to vote

Replies: 1 comment · 1 reply

Comment options

Hi,

I think you will need to re-initialize the table after changing dtOptions.language.lengthMenu.

Please use the Rerender example to learn how to re-initialize the table.

You must be logged in to vote
1 reply
@habtista-peco
Comment options

Hi,

Thanks for the quick reply.

I'm not sure if this applies to tables that are using "serverSide: true."

Can I use serverSide: true and a trigger on the same table?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.