Open amnambiar opened 2 years ago
Can you please merge this PR in immediate effect in a matter of less than 24 hours, considering this a priority. PLEASEEE!
+1
+1
Many thanks for the PR. However, I'm afraid I won't be able to pull it in yet for the following reasons:
renderReturnType
parameter which isn't defined anywherecellData
function rather than using a switch to call it with a different signature?I would like this feature included in matter of hours to be exact, as my app relies on this!
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.
@AllanJard ,
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
col.render = (data, type, row, meta) => { return createdCellCallback; }
into
col.render = (data, type, row, meta) => { if (type === 'display') { return createdCellCallback; } else {return data} }
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 https://github.com/DataTables/ColReorder/issues/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