@@ -5,17 +5,21 @@ import {NS_ROUTER_DIRECTIVES} from "nativescript-angular/router/ns-router";
5
5
selector : "first-action-bar" ,
6
6
directives : [ NS_ROUTER_DIRECTIVES ] ,
7
7
template : `
8
- <ActionBar title="Title 1">
9
- <ActionItem *ngIf="show" text="action" (tap)="onTap()" [nsRouterLink]="['Second']"></ActionItem>
10
- <ActionItem (tap)="onShare()" ios.systemIcon="9" ios.position="left"
11
- android.systemIcon="ic_menu_share_holo_light" android.position="actionBar"></ActionItem>
12
- <ActionItem (tap)="onDelete()" ios.systemIcon="16" ios.position="right"
13
- android.position="popup" text="delete"></ActionItem>
8
+ <ActionBar title="Title 1" automationText="title">
9
+ <ActionItem *ngIf="show" text="action" (tap)="onTap()" [nsRouterLink]="['Second']"
10
+ automationText="action"></ActionItem>
11
+ <ActionItem (tap)="onShare()" ios.systemIcon="9" ios.position="left"
12
+ android.systemIcon="ic_menu_share_holo_light" android.position="actionBar"
13
+ automationText="share"></ActionItem>
14
+ <ActionItem text="delete" (tap)="onDelete()"
15
+ ios.systemIcon="16" ios.position="right"
16
+ android.position="popup"
17
+ automationText="delete"></ActionItem>
14
18
</ActionBar>
15
19
16
20
<StackLayout verticalAlignment="center">
17
- <Label [text]="messageShare"></Label>
18
- <Label [text]="messageDelete"></Label>
21
+ <Label [text]="messageShare" automationText="lblShare" ></Label>
22
+ <Label [text]="messageDelete" automationText="lblDelete" ></Label>
19
23
</StackLayout>
20
24
` ,
21
25
} )
0 commit comments