Added TabViewItem change support for Android. Fixed empty titles for SegmentedBar and TabView.

This commit is contained in:
Rossen Hristov
2015-09-01 09:55:25 +03:00
parent 221fb34102
commit b848d2f02d
5 changed files with 74 additions and 20 deletions

View File

@@ -20,6 +20,7 @@ export class TabViewItem extends bindable.Bindable implements definition.TabView
set title(value: string) {
if (this._title !== value) {
this._title = value;
this._update();
}
}
@@ -29,6 +30,9 @@ export class TabViewItem extends bindable.Bindable implements definition.TabView
set view(value: view.View) {
if (this._view !== value) {
if (this._view) {
throw new Error("Changing the view of an already loaded TabViewItem is not currently supported.");
}
this._view = value;
}
}
@@ -40,8 +44,13 @@ export class TabViewItem extends bindable.Bindable implements definition.TabView
set iconSource(value: string) {
if (this._iconSource !== value) {
this._iconSource = value;
this._update();
}
}
public _update() {
//
}
}
var TAB_VIEW = "TabView";