alfajango / jquery-dynatable

A more-fun, semantic, alternative to datatables
http://www.dynatable.com
Other
2.77k stars 361 forks source link

Restrict columns for searching. #264

Open Adhumm opened 8 years ago

Adhumm commented 8 years ago

I couldn't find a way to exclude columns from searching, is this feature available right now or not? If not, please add it as it will improve searching.

strangel00p commented 7 years ago

I had the same issue, so I updated the plugin:

https://github.com/strangel00p/jquery-dynatable

To exclude a column from search, you can either add a data attribute to the column header:

<th data-dynatable-no-search="true">...</th>

or list columns in an array in the plugin options:

$('#my-table').dynatable({
    dataset: {
        noSearch: ['excluded', 'columns']
    }
});
hectorprats commented 5 years ago

please, merge it