Hello,
we have a page with an icon of a search icon inside a navbar, once the user clicks on this icon, the search bar should show up and push the content down.
That is the layout:
That is the code of my ion-header
:
<ion-header>
<ion-navbar>
<ion-item>
<ion-icon name="search" (click)="searchActive=!searchActive" item-right></ion-icon>
<ion-icon name="more" md="ios-more" item-right></ion-icon>
</ion-item>
</ion-navbar>
<ion-toolbar *ngIf="searchActive">
<ion-searchbar></ion-searchbar>
</ion-toolbar>
</ion-header>
This works good, but then the searchbar overlaps the content which should be pushed down:
Iām pretty sure this could be made programatically, but perhabs a easier way of achieving this?