New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search in Table but in a specific Column #30
Comments
Can you provide an example where this feature may be usable? |
Sure. I add 2 textbox for search, each can be used to search in the respective column. My idea is: var jets = new Jets({
contentTag: '#jetsContent',
callSearchManually: true,
columns: [0,4]
});
$("#txtSearch1").on("input", function(evt){
var val=this.value;
jets.search(val, [0]);
});
$("#txtSearch2").on("input", function(evt){
var val=this.value;
jets.search(val, [4]);
}); This because I don't want Jets search in all 2 column, but only in the respective column. |
Ok I see |
And if during initializazion, with new param "searchInSpecificColumn: true", you add more data attribute, for example <tr data-jets="blake norton 31" data-jets-cln0="blake norton" data-jets-cln3="31">
<td>Blake Norton</td>
<td></td>
<td></td>
<td>31</td>
</tr> and when call new search method "jets.search(val, 0)" you generate this css #jetsContent > :not([data-jets-cln0 *= "search_query"]){ display:none; } |
Can be an idea configure Jets to search in a Table column, deciding the column in the search method.
Example
The text was updated successfully, but these errors were encountered: