我有一个按钮,我想在搜索结果的末尾显示它。为此,我在表格行中添加了“过滤器”属性。无论在搜索栏中输入什么内容,我都需要一种方法来调用该行(例如过滤器匹配)。我想我需要某种形式的通配符。做了一些研究,我还没有找到任何简单地显示通配符的东西。我的大部分结果似乎都使用了正则表达式。那么,有可能做到这一点吗?
search : Ti.UI.createSearchBar({
barColor : '#666',
height : '45dp',
top : 0,
showCancel : false
}),
filterAttribute : 'filter',
//Above is from the Table code, below is the row's code.
var buttonRow = Ti.UI.createTableViewRow({
backgroundImage : $$.components.RowBG,
selectionStyle : 'none',
height : '60dp',
filter : 'I NEED THIS FILTER TO RETURN NO MATTER WHAT IS INPUTTED IN SEARCH'
});