Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

context-menu-empty-text not working #133

Open
ranliveh opened this issue Jan 25, 2018 · 1 comment
Open

context-menu-empty-text not working #133

ranliveh opened this issue Jan 25, 2018 · 1 comment

Comments

@ranliveh
Copy link

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

@mastersonmike
Copy link

mastersonmike commented Mar 19, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants