NOTE!

As of v2.24.7, using the applyWidgetId will now add the widget to the widgets options, so you will no longer notice any difference between the two methods. The difference is:

Demo


(columns & sort)
(columns & zebra)
(add 'zebra' to table.config.widgets then trigger applyWidgets method)
First NameLast NameAgeTotalDiscountDate
PeterParker28$9.9920%Jul 6, 2006 8:14 AM
JohnHood33$19.9925%Dec 10, 2002 5:14 AM
ClarkKent18$15.8944%Jan 12, 2003 11:14 AM
BruceAlmighty45$153.1944%Jan 18, 2001 9:12 AM
BruceEvans22$13.1911%Jan 18, 2007 9:12 AM

Javascript


	

HTML


	

Next up: Columns widget ››