ui.bootstrap.contextMenu
ui.bootstrap.contextMenu copied to clipboard
context-menu-empty-text not working
Attribute context-menu-empty-text is not working, showing empty ever
I had the same issue and I found a simple workaround is to not put a string literal but some variable to be evaluated in the option: instead of: <div context-menu-empty-text="No options available" other_options... do this: <div context-menu-empty-text="grid.appScope.myEmptyText" other_options...
then just define the myEmptyText in your grid controller.
The problem seems to be the use of $scope.$eval(attrs.contextMenuEmptyText)) in the JS, perhaps switching that out for something else (parse?) would work.