data-search in aoColumns?

data-search in aoColumns?

luisrvaldezluisrvaldez Posts: 2Questions: 1Answers: 0

Hi there,

Is there any anyway to define what gets used to filter in the aoColumns field? or the columns?
I was thinking of something like this...

{ data: 'Text', orderDataType: 'dom-text', type: 'html', dataSearch: 'Text'}

I've got an input box in there. when I add the type: 'html', it ignores everything inside an html tag, when what I wanted was for it to strip the tag and use the value..

Answers

  • luisrvaldezluisrvaldez Posts: 2Questions: 1Answers: 0

    btw... I'm using a source dataset, so I don't really have the TD's do edit...

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    You can use orthogonal data to control what DataTables uses for the search term.

    However it looks like you might want to use the input element's value - is that correct? That isn't something that DataTables currently supports I'm afraid.

    Allan

This discussion has been closed.