REQ: Highlight filtered text plug-in?
REQ: Highlight filtered text plug-in?
Is there a plug-in to highlight filtered text? If not, I may write one.
I have 3 filtering places in my app: one is the standard search filter across most columns, another is a set of per-column filters using fnFilter, and the last is a MySQL FullText keyword search textbox. Each of them filters on the data, albeit in different ways or scope.
I'd like to highlight words in the result columns that apply in those three searches, using different colors, etc. (somewhat like http://www.nsftools.com/misc/SearchAndHighlight.htm) Is there a plug-in that does this already?
I imagine the simplest implementation would use spans and inline css to color the highlights with fnRender. fnRender doesn't interfere with Editable, does it?
I've also noticed 2 architectures for plug-ins or extras. Some create jquery functions and are chainable to the datatable call like [code] $('#myDataTable').dataTable().makeEditable(); } [/code] while some are standalone classes like [code] oTable = $('#example').dataTable(); new FixedColumns( oTable ); [/code] Which of these is preferable?
I have 3 filtering places in my app: one is the standard search filter across most columns, another is a set of per-column filters using fnFilter, and the last is a MySQL FullText keyword search textbox. Each of them filters on the data, albeit in different ways or scope.
I'd like to highlight words in the result columns that apply in those three searches, using different colors, etc. (somewhat like http://www.nsftools.com/misc/SearchAndHighlight.htm) Is there a plug-in that does this already?
I imagine the simplest implementation would use spans and inline css to color the highlights with fnRender. fnRender doesn't interfere with Editable, does it?
I've also noticed 2 architectures for plug-ins or extras. Some create jquery functions and are chainable to the datatable call like [code] $('#myDataTable').dataTable().makeEditable(); } [/code] while some are standalone classes like [code] oTable = $('#example').dataTable(); new FixedColumns( oTable ); [/code] Which of these is preferable?
This discussion has been closed.
Replies
Allan