-
-
Notifications
You must be signed in to change notification settings - Fork 425
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
Fix to not always expect return string in _fnGetCellData to insert in innerHTML; and permit to call a callback #198
base: master
Are you sure you want to change the base?
Conversation
… to createdCell callback
…o insert string into innerHTML
Can you please merge this PR in immediate effect in a matter of less than 24 hours, considering this a priority. PLEASEEE! |
+1 |
1 similar comment
+1 |
Many thanks for the PR. However, I'm afraid I won't be able to pull it in yet for the following reasons:
I'm afraid it doesn't work like that. I don't place demands on your time - I would appreciate if you didn't make demands of ours. |
http://live.datatables.net/qonidogo/6/ here is the link to reproduce the issue. Reorder the columns and see that the links in Name column disapper. I want the table to behave in a way that if , commented lines are uncommented in place of existing 'render', then links be inserted no matter what. Feel free to suggest alternative key values for renderReturnType, and I can update the PR accordingly. Please let me know what else I can do to get this in! |
Regarding your point 3 above, I do not want the cellData to return a string back to be inserted into the innerHTML. Instead I want the entire insserting of data to be handled within the cellData function itself. Regarding 4, inorder to faciliate sorting I might have to update the implementation part below |
Regarding 2, Yes it is a new Key i introduced to faciliate deciding if cellData needs to be invoked then and there using .call or if the cellData needs to be considered as a function to be returned, to be invoked when cell html is to be placed. |
I have raised https://datatables.net/forums/discussion/71345/customize-render-callback-to-not-expect-a-string-and-just-perform-actions-within-the-callback-fn as well in place. Please see what can be done from your side. |
Hi Team,
IMPORTANT
Please test and accept this PR which will faciliate the following:
This will faciliate blindly performing the function within returned function of col.render at all times (especially after reorder of columns)
This is in accordance to my communication over the issue thread DataTables/ColReorder#49
Cc: @AllanJard, @SandyDatatables @colin0117 Please look into this. I would like this feature included in matter of hours to be exact, as my app relies on this! Please HELP