Page 1 of 1

Search button on header

Posted: Sat Feb 20, 2016 11:42 am
by skarun

I am looking at the Angular Bootstrap Pizza 2 (https://devcenter.appery.io/tutorials...) where the search is implemented. This is bootstrap and I want to do something similar in Ionic with a "Search" icon on the header, when clicked expands into a search input box, or drops a search input box into the ng-view area. I am unable to add Form or Input ionic component to the header.

Any samples, or how I can do this.

Any other better looking way to implement this?

Thanks a lot for any response.


Search button on header

Posted: Sun Feb 21, 2016 12:13 pm
by Illya Stepanov

Hello -

At this point visual builder in Ionic has two containers fields inside the Header and these fields accepts only Buttons. But in our future release we will make a possibility to add an Input component as well.


Search button on header

Posted: Sun Feb 21, 2016 7:00 pm
by skarun

Any idea when is this release due, any further info if you have is appreciated. Thanks for the response Illya.

Just keeping this open for discussion on any creative ways to implement search - where there is a input that can be accessed throughout the app. And when text is entered, based on which screen you are in, executes a filter for the set on the screen.


Search button on header

Posted: Tue Feb 23, 2016 8:30 pm
by Serhii Kulibaba

Hello,

And when text is entered, based on which screen you are in, executes a filter for the set on the screen

You can call any function in the unput attribute ng-change
e.g.: ng-change=myFun()


Search button on header

Posted: Thu Feb 25, 2016 3:40 am
by Julian De La Rosa

also you can create your own directive


Search button on header

Posted: Mon Apr 17, 2017 1:37 am
by Frank7390035

Hello, I also have the need to add a search input in the header, would it be possible to implement this feature?

Thank you so much,
Frank


Search button on header

Posted: Tue Apr 18, 2017 4:21 pm
by Serhii Kulibaba

Hello Frank,

You can drag'n'drop the input component to the header


Search button on header

Posted: Tue Apr 25, 2017 10:49 pm
by Frank7390035

Hi Serhii,

Thanks. It does work. I just found that if insert an input component inside the header, the header text (e.g. {{activeScreen.name}}) disappears. Is is possible to have both at the same time? I'd like to have them both on the index page and use variables to control which one to show in different pages.

Thank you,
Francesca


Search button on header

Posted: Thu Apr 27, 2017 10:15 am
by Serhii Kulibaba

Please add a botton to the right top corner on the index header and an input component - to the right top

And use a custom CSS for that:
pre.bar-header button{
width:50%;
}

.bar-header button:hover,
.bar-header.bar-light button.activated{
background:#ffffff;
}/pre


Search button on header

Posted: Fri Apr 28, 2017 2:59 am
by Frank7390035

thanks. I am now using a button to display the header title