angular-advanced-searchbox icon indicating copy to clipboard operation
angular-advanced-searchbox copied to clipboard

add directive attribute to bind the component focus

Open rafaelhz opened this issue 8 years ago • 0 comments

Add possibility to set the component initial state focused, and allow set focus by another component

Examples: binding the property:

<nit-advanced-searchbox
  set-search-focus="searchFocus">
</nit-advanced-searchbox>
<a ng-click="searchFocus = true">Set Focus</a>

just setting the initial state focused

<nit-advanced-searchbox
  set-search-focus="true">
</nit-advanced-searchbox>

rafaelhz avatar Mar 16 '16 20:03 rafaelhz