Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25497] Windows: Search bar does does not support changing color in the suggestion field

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionNot Our Bug
Resolution Date2018-02-07T07:41:14.000+0000
Affected Version/sRelease 6.3.0
Fix Version/sn/a
ComponentsWindows
Labelsn/a
ReporterSamir Mohammed
AssigneeKota Iguchi
Created2017-11-09T23:34:25.000+0000
Updated2018-08-06T17:52:04.000+0000

Description

Search bar does does not support changing color in the suggestion field.
var win = Ti.UI.createWindow({
    backgroundColor: 'red'
});
var tableData = [];
for (var i = 0, l = 100; i < l; i++) {
    var row = Ti.UI.createTableViewRow({
        _index: i,
        rowColor: 'blue'
    });
    var titleLabel = Ti.UI.createLabel({
        color : 'blue',
        text: i,
    });
    row.add(titleLabel);
    tableData.push(row);
}
var tableSearch = Titanium.UI.createSearchBar({
    barColor:'blue', 
    showCancel:true,
    height:43,
    top:0,
});
var tableView = Ti.UI.createTableView({
    data: tableData,
    filterAttribute: '_index',
    backgroundColor: 'red',
    Color: 'blue',
    filterAnchored: true,
    search: tableSearch,
});
win.add(tableView);
win.open();
*Steps to reproduce* + Add the above code to an existing app.js + Build for Windows + Search for something ("6") *Actual result* Color of the suggestion field will stay gray and the user will not be able to read the item numbers

Comments

  1. Kota Iguchi 2018-02-07

    I was spending time trying to find a way to draw a background color onto the suggestion field, but ended up finding there's no API exposed for it for Windows SearchBox. So I would resolve this ticket as "Not Our Bug" for now.
  2. Eric Merriman 2018-08-06

    Closing as "not our bug". If you disagree, please reopen.

JSON Source