We’re looking at mimicking the discourse header so that we can better integrate with our site - basically the discourse header is much smoother than ours so we’re looking to mimick it.
I am trying to reverse engineer it which is a learning curve in itself as I am new to ember!
starting off with the basics - ignoring all of the other stuff aside from search - I have the Icon showing in the header view using the method they are with the hectic deprecated icon → fa-icon (that sent me in a 2 hour loop in itself!).
So the template defines the following for the search icon and link:
<a id='search-button'
class='icon expand'
href='#'
data-dropdown="search-dropdown"
title='{{i18n search.title}}'>
{{fa-icon search label="search.title"}}
</a>
What is really puzzling me is how does that fire the event that makes the search bar pop up? I can see in the search controller that they are using searchContextEnabled to say whether or not the bar is visible (at least I think that is what is happening?) but how is it all wired up?
I don’t see any action or anything on this code - what am I missing?
w://