问题
I want to template a cell as a dropdown button. So I created a cell template with a button linked to the dropdown directive. If I create this button outside the grid, it's working but inside the grid it's not. I am not sure but I guess the $scope is not accessible in the template.
I created a Plunker that shows the issue
回答1:
It looks like a bug to me. The problem is relating to the CSS of .ngCell. Currently the overflow property is set to hidden. Try add this to your css file to overwrite the property
.ngCell {
overflow: visible;
}
来源:https://stackoverflow.com/questions/18521645/integrate-dropdown-angular-strap-with-ng-grid