Fixed Issue #518: Allow ActionItems to be directly specified between the ActionBar opening and closing tags.

This commit is contained in:
Rossen Hristov
2015-12-16 16:37:35 +02:00
parent 9418ab8f63
commit 1bd52efddb
9 changed files with 72 additions and 4 deletions

View File

@@ -129,8 +129,10 @@ export class ActionBar extends view.View implements dts.ActionBar {
if (value instanceof dts.NavigationButton) {
this.navigationButton = value;
}
if (value instanceof view.View) {
else if (value instanceof dts.ActionItem) {
this.actionItems.addItem(value);
}
else if (value instanceof view.View) {
this.titleView = value;
}
}