Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12932] BlackBerry: Window.title

GitHub Issuen/a
TypeSub-task
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-03-06T08:26:11.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.1.0, 2013 Sprint 05 BB, 2013 Sprint 05
ComponentsBlackBerry
Labelsn/a
ReporterJosh Roesslein
AssigneeJosh Roesslein
Created2013-03-02T06:46:47.000+0000
Updated2017-03-09T00:48:46.000+0000

Description

Support setting a title on a window (both for tabs and standalone windows).

Acceptance Test

Standalone Window

var win = Ti.UI.createWindow({
  title: 'A lonely window',
  backgroundColor: 'blue'
});
win.open();
1. Verify a window opens (blue background). 2. There should be a title at the top.

Tab window

function createTab(color, title) {
  var win = Ti.UI.createWindow({
    title: title,
    backgroundColor: color
  });
  return Ti.UI.createTab({
    title: color,
    window: win
  });
}

var tabGroup = Ti.UI.createTabGroup();
tabGroup.addTab(createTab('blue', 'You take the blue pill.'));
tabGroup.addTab(createTab('red', 'You take the red pill.'));
tabGroup.open();
1. Verify the tab group opens with two tabs. 2. Verify each tab has a title (bottom) for each color. 3. Try selecting both tabs and verify title for window is displayed on top.

Comments

  1. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source