mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #1263 from NativeScript/issue-518
Fixed Issue #518: Allow ActionItems to be directly specified between…
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user