Skip to content

title attribute search #1251

@markusd1984

Description

@markusd1984

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions