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

Added possibility to replace only the link text by the provided html … #61

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dietergeerts
Copy link

…+ added compile option, to support translations.

…+ added compile option, to support translations.
} else if (typeof item.text !== "undefined") {
}
else if (typeof item.html !== "undefined" && item.replaceTextByHtml)
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This curly brace should be moved to previous line for consistency

@josetaira
Copy link
Collaborator

Seems to look alright. I'll test it out in a little while. In the meantime, please check out some of the minor comments above.

Also, what is the issue related to this?

@dietergeerts
Copy link
Author

Hi, I restyled the curly braces. The reason I did them that way is to make it more readable, as it was getting cramped with code.

As for what issue: none actually, I didn't made one, but I had some functionality added:

  • We needed to have an icon before a menu item, but inside the original link tag, not completely replacing the item
  • We needed to use translations with the menu items, so compilation is needed (also for the icon)

So for example, I need the following html inside the link tag:
<span data-ng-include="'/icons/add.svg'"></span> <span>{{::'ACTION.ADD' | translate}}</span>

@dmarafetti
Copy link

This feature definitely must be part of the master brach

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

Successfully merging this pull request may close these issues.

3 participants