Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15644] ListItem "searchableText" should default to "title"

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsTiAPI
Labelslistview, listviewitem
ReporterTony Lukasavage
AssigneeUnknown
Created2013-11-02T15:41:12.000+0000
Updated2018-02-28T20:03:19.000+0000

Description

problem

In TiSDK 3.2.0 the searchableText property was introduced for Ti.UI.ListItem. This is to work along with the searchView. If I attempt to use the default template using simply the title property on ListItems, the title is not used by the searchView. I instead need to explicitly add searchableText with the same value as the title. My expectation is that in the absence of searchableText it would use the given title as the searchableText.

example

<ListItem title="my row"/>
<ListItem title="another row" searchableText="another row"/>
If I search for "row" in an attached searchView, only the second list item will be listed. I think the expected behavior would be that both would show, using the title as the default searchableText. It also seems quite redundant to have to list both.

Comments

No comments

JSON Source