ui.bootstrap.contextMenu icon indicating copy to clipboard operation
ui.bootstrap.contextMenu copied to clipboard

context-menu-empty-text not working

Open ranliveh opened this issue 8 years ago • 1 comments

Attribute context-menu-empty-text is not working, showing empty ever

ranliveh avatar Jan 25 '18 12:01 ranliveh

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.

mastersonmike avatar Mar 19 '18 01:03 mastersonmike