LukaszWatroba / v-accordion

Multi-level accordion component for AngularJS.
http://lukaszwatroba.github.io/v-accordion
MIT License
310 stars 100 forks source link

onexpand : Callback is triggered in link. #70

Open Rouche opened 8 years ago

Rouche commented 8 years ago

Hi,

Version 1.6.0

Could you add an option on the onexpand callback to diferentiate between real user clicks and the one called inside ctrl.addPane()?

Something like $scope.expandCb({ index: ctrl.getPaneIndex(paneToAdd), id: paneToAdd.id, pane: paneToAdd, internal: true});

Need a PR, its pretty simple?