I'm trying to add a delete option in the header of the dropdownlist.
$scope.layoutOptions = {
headerTemplate: '<div data-ng-if="selectedLayout.id < 0" class="dropdown-header k-widget k-header"><a href="" data-ng-click="deleteLayout(instance)">Delete {{selectedLayout.description}}?</a></div>'
}
This are my options (inside an AngularJs controller). Is there any way to pass the selected value (dataItem) to my function deleteLayout?