bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Callback method when drodown menu opens

Open abhranilnaha opened this issue 12 years ago • 3 comments

When user clicks on dropdown button (dropdown-toggle), it pulls data from backend with an asynchronous call. I want to set focus on the first dropdown menu item like typeahead (typeahead-focus-first). I need a callback method to do so when the dropdown menu is opened.

abhranilnaha avatar Nov 18 '14 10:11 abhranilnaha

Can you use the on-toggle for that. http://angular-ui.github.io/bootstrap/#/dropdown

mvhecke avatar Nov 18 '14 11:11 mvhecke

I don't think on-toggle will work because it is called as soon as dropdown is clicked to open. I need a callback method like afterDrodownOpen which will be called only after the dropdown menu items are opened. It should work the same way it is working for typeahead-focus-first in typeahead control.

abhranilnaha avatar Nov 18 '14 18:11 abhranilnaha

Please ask implementation questions on StackOverflow. We'll be happy to answer your questions there. https://github.com/angular-ui/bootstrap#need-help

rvanbaalen avatar May 31 '15 21:05 rvanbaalen