This repository was archived by the owner on Apr 17, 2019. It is now read-only.
Make custom values available inside the javascript template#301
Open
rossanthony wants to merge 1 commit intoChumper:masterfrom
rossanthony:master
Open
Make custom values available inside the javascript template#301rossanthony wants to merge 1 commit intoChumper:masterfrom rossanthony:master
rossanthony wants to merge 1 commit intoChumper:masterfrom
rossanthony:master
Conversation
Collaborator
|
@rossanthony have you tried using |
Author
|
@timgws thanks for the reply, However I wanted to set a custom value to conditionally chain the rowReordering onto the dataTable object, like so: with the sortable_path being the endpoint for the server-side reordering script. If there's a better way to achieve the same result then I'd appreciate any ideas you might have as to how else I could conditionally trigger the setup of the drag-n-drop row reordering for certain dataTables. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Need to be able to pass custom values into the javascript template, currently there is a comment in the default javascript template
// custom values are available via $values arraywhich implies this is possible, however the values are not passed through. The change in this pull request corrects this.Basically I want to be able to conditionally trigger the dataTable (RowReordering plugin)[https://code.google.com/p/jquery-datatables-row-reordering/wiki/Index] to run, this has to be chained onto the main call to inititalise the dataTable object. For example: