Skip to content
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

title attribute search #1251

Open
markusd1984 opened this issue Jan 27, 2023 · 0 comments
Open

title attribute search #1251

markusd1984 opened this issue Jan 27, 2023 · 0 comments

Comments

@markusd1984
Copy link

I've added support for searching through title attributes, as titles for tooltip are so useful in multiselect. Perhaps somebody can crease a commit for similar or a better solution.

var title = $(element).attr("title").length > 0 ? $(element).attr("title") : "";

else if ((this.options.filterBehavior === 'title')) {
 filterCandidate = title;
}
else if (this.options.filterBehavior === 'all') {
 filterCandidate = text + '\n' + value + '\n' + title;
}

filterBehavior: 'title' for searching only title attribute or ideally filterBehavior: 'all' to search through text + value + titles.

#256
#1007

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant