Quantcast
Viewing all articles
Browse latest Browse all 82130

aoFeatures update data

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:
$.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.

Viewing all articles
Browse latest Browse all 82130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>