Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with ServerSide Response (data-attributes) #16

Closed
mschiegg opened this issue Feb 1, 2022 · 3 comments
Closed

Problem with ServerSide Response (data-attributes) #16

mschiegg opened this issue Feb 1, 2022 · 3 comments

Comments

@mschiegg
Copy link

mschiegg commented Feb 1, 2022

I did not figure out, how jsTable works with attributes in ServerSide Data Response.
Without attributes the Table works flawless. But when i add attributes, the table doesnt work.
Any hints?

JS Code

let table = new JSTable('#js-table', {  
  serverSide: true,  
  ajax: "{% url 'tasks:json' %}",  
  deferLoading: '{{stats.active}}',  
  perPage: 25,
  ajaxParams: {},
  perPageSelect: [25, 50, 100],	
});

Serverside Response
image

Dev Console
image

@Trekky12
Copy link
Collaborator

Trekky12 commented Feb 1, 2022

Hello @mschiegg,

from a first look your code should work without problems. Can you verify that you are using the latest version 1.5?

@mschiegg
Copy link
Author

mschiegg commented Feb 1, 2022

Shame on me, i was running an old Version.
Updated to 1.5 and it works.
Damn... usually this is always the first thing I do

Thanks for your fast response and congrats for this great work, love this thing!

@Trekky12
Copy link
Collaborator

Trekky12 commented Feb 1, 2022

Good to know that is working fine with the latest version ;-)
Unfortunately this feature is actually new and I didn't mark in the documentation since which version it is supported.

I'm glad you like it 👍

@Trekky12 Trekky12 closed this as completed Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants