Hi,
I am trying to add a new feature to sDom to replace the built in 'info' component.
I am doing that because I want to add buttons to the component.
I can't figure out how can I update the component when the data is updated (e.g on table draw).
My code so far:
Thanks,
Yoni.
I am trying to add a new feature to sDom to replace the built in 'info' component.
I am doing that because I want to add buttons to the component.
I can't figure out how can I update the component when the data is updated (e.g on table draw).
My code so far:
$.fn.dataTableExt.aoFeatures.push({ fnInit: function(oSettings) { var d = document.createElement('div'); $(d).append(oSettings.fnFormatNumber(oSettings._iDisplayStart+1)); $(d).append($('<a>', {href: '#', click: function(e) { doing something here.... oSettings.oApi._fnReDraw(oSettings); return false; }}).text("some text")); return d; }, cFeature: "C", sFeature: "fff" });Apreciate any help!
Thanks,
Yoni.