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

Accept options in data-pjax-table #1

Open
dustinhayes opened this issue Mar 31, 2015 · 1 comment
Open

Accept options in data-pjax-table #1

dustinhayes opened this issue Mar 31, 2015 · 1 comment

Comments

@dustinhayes
Copy link

This would eliminate the need for data-auto-init="true", for example. You could instead have something like:

<div data-pjax-table='{"autoinit": true, "url": "/some-path"}'></div>
@dustinhayes dustinhayes changed the title Accept options in data-pjax-table Accept options in data-pjax-table Mar 31, 2015
@mparke
Copy link
Contributor

mparke commented Apr 1, 2015

Interesting suggestion, but I'm on the fence about whether this is a good idea. It would require error checking for invalid JSON and each field instead of just on the individual attributes. Do you know of any library examples where this format is used often?

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