Ich versuche ein Modal (Komponente mit Ansicht) zu öffnen und möchte, dass es eine Schließen-Schaltfläche in der Aktionsleiste oben hat.ActionBar wird nicht auf NativeScript angezeigt. Angular 2 modal
Gibt es etwas, das ich in meiner modalen Seitenansicht fehlt, damit die Aktionsleiste nicht angezeigt wird? Ich bin mir nicht sicher, ob es bedeckt ist oder nicht? Ich habe auch die Optionen wie „Vollbild: true“ an die modale weitergegeben werden
Hier ist der Ansicht Markup
<StackLayout>
<ActionBar title="Add a new beer">
<ActionItem
(tap)="close('OK')"
text="Close"
ios.position="left"
android.position="left">
</ActionItem>
</ActionBar>
// Beer name
<Label class="beer_information_label" text="What's the name of the beer?"></Label>
<TextField hint="Enter the beer's name'" [(ngModel)]="beer.name" autocorrect="false" text="" autocapitalizationType="words" row="2" col="1"></TextField>
// Label image
<Label class="beer_information_label" text="Label image"></Label>
// Beer Type
<Label class="beer_information_label" text="Beer type"></Label>
<TextField hint="Beer type" autocorrect="true" text="" autocapitalizationType="words" row="2" col="1"></TextField>
// Beer Rating
<Label class="beer_information_label" text="Rating"></Label>
<Button class="btn btn-primary btn-active" text="Set Beer Rating" (tap)="setBeerRating()"></Button>
// Beer Description
<Label class="beer_information_label" text="Beer Description"></Label>
<TextField hint="Enter Beer Description" autocorrect="false" text="" autocapitalizationType="allCharacters" row="2" col="1"></TextField>
// Beer Glassware
<Label class="beer_information_label" text="Beer type"></Label>
<TextField hint="Enter Beer Glassware" autocorrect="false" text="" autocapitalizationType="words" row="2" col="1"></TextField>
<Button class="btn btn-primary btn-active" text="Submit this new beer" (tap)="submitNewBeertoFirebase()"></Button>
</StackLayout>
danke ich fragte mich, ob das der Fall ist. Ich denke auch, dass ich Ihr Firebase-Plugin verwende ;-) –