Repository navigation
Conversation
|
Interesting one. Thanks for the pull request. I'm not going to pull this in immediately, as I want to think a little bit about |
|
I'm in a situation where I need to grab this metadata (total, etc.) from headers. Is this patch by @JuarezTurrini still the best/only way to accomplish this? |
|
I notice that the I'm not sure whether this is intentional or a bug, but as I'm testing the |
This is expected yes. The Ajax request to get the language strings (I presume you are using |
|
(No, I'm not using Obviously this is all wrong. I could try to debug it out, but it seems that the preferred solution would be to access the |
Okay - thanks for the clarification. Unfortunately that will not work at the moment. There is currently no way to dynamically change the language strings that DataTables uses after initialisation and the language strings have already been set up by that point. |
|
As a followup to this thread, I've successfully met my goals (of needing to grab metadata from the headers) with the I still think that the Thanks, @DataTables, for the quick feedback, and for the codebase itself, which has been amazing. |
There are situations where the data of pagination (total, page, offset, last-page) are sent by headers and other situations where they are sent inside json return. The Datatable only offers me the second option in "dataSrc", so I added support for the this first option.
So I changed the code to include support for jqXHR as second option on dataSrc.