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

Avoid table update when AjaxResponse #1712

Closed
rspadim opened this issue Jan 8, 2019 · 2 comments
Closed

Avoid table update when AjaxResponse #1712

rspadim opened this issue Jan 8, 2019 · 2 comments
Assignees
Labels
Question - Ask On Stack Overflow Questions must be asked on Stack Overflow

Comments

@rspadim
Copy link

rspadim commented Jan 8, 2019

Could AjaxResponse be aborted? today i'm using throw to abort the data update, maybe returning NULL could result the same effect?

i'm talking about this:

data = self.table.options.ajaxResponse.call(self.table, self.url, self.params, data);

@olifolkerd olifolkerd self-assigned this Jan 9, 2019
@olifolkerd
Copy link
Owner

Hey @rspadim

Could you be a bit more specific about why you need to abort? has there been an error is it a user pressing a button.

What would you want to happen to the data? be cleared or stay as it was?

Cheers

Oli :)

@olifolkerd olifolkerd added the Question - Ask On Stack Overflow Questions must be asked on Stack Overflow label Jan 9, 2019
@rspadim
Copy link
Author

rspadim commented Jan 21, 2019

I call set data to execute ajax load
But mu ajax data tell me to avoid update, and i raise n error to avoid setdata to execute update

If i return null the tabulator clean the table, if i raise any error the ajax update is avoided

I want to know if raise an error is ok, or the could return null or false to ajax function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question - Ask On Stack Overflow Questions must be asked on Stack Overflow
Projects
None yet
Development

No branches or pull requests

2 participants