You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 17, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: ui/action-bar.md
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ To define the ActionBar include the `ActionBar` tag inside a component template:
49
49
```XML
50
50
<ActionBartitle="Custom Title"></ActionBar>
51
51
```
52
-
If more than one component defines an `ActionBar` - the last definition will be respected. You can also [add items to the current ActionBar](#adding-actions-to-existing-action-bar).
52
+
If more than one component defines an `ActionBar` - the last definition will be respected. You can also [add items to the current ActionBar](#adding-actions-to-existing-actionbar).
53
53
54
54
>Note: To show the ActionBar on the initial page of your application use the `startPageActionBarHidden: false` app option when bootstrapping the application.
55
55
@@ -112,6 +112,11 @@ The result is:
112
112
113
113
> **Note**: You can use CSS to style the elements inside the `titleView`.
114
114
115
+
{% angular %}
116
+
> **Important**: Platform specific tags (e.g. `<ios>` and `android`) can't be used in Angular based project.
117
+
Use structural directives like `*ngIf` to create platform specific logic for your ActionBar.
118
+
{% endangular %}
119
+
115
120
## Setting the App Icon for Android
116
121
You can set the application icon only for Android. By default, the application icon is hidden. You can show it by setting the `android.iconVisibility` property to `always`.
117
122
@@ -456,6 +461,7 @@ For iOS, this code adds a regular `ActionItem` with `position` set to `left`. Us
456
461
457
462
{% nativescript %}
458
463
>Note: The `<android>` and `<ios>` tags are used inside the XML to define platform-specific elements.
464
+
>Important: The platform specifc tags (`<android>` and `<ios>`) will work only in non-Angular based project.
Using the `ActionBarExtension` component you can add additional action items to the current `ActionBar`. This is useful if you are writing a reusable component that exposes an action (ex. "save"), but you don't want to override the whole `ActionBar`.
0 commit comments