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

Feature request - directive template support for menuItemTemplate #4

Open
thecoconutstudio opened this issue Nov 28, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@thecoconutstudio
Copy link

thecoconutstudio commented Nov 28, 2018

It would be great to be able to add Angular markup in menuItemTemplate.

Perhaps even pass a ng-template

I was hoping to be able to do something like this -

menuItemTemplate: function (item) {
        return ' <ion-row center>\n' +
          '        <ion-col class="face-col valign" col-auto>\n' +
          '            <img-cache [source]="item | image"></img-cache>\n' +
          '            <!--<div class="svg-container" [inlineSVG]="item.images.sm" [style.padding.px]="iconPadding" *ngIf="showSvg"></div>-->\n' +
          '\n' +
          '        </ion-col>\n' +
          '        <ion-col class="text valign" >\n' +
          '            ' + item.string   +
          '        </ion-col>\n' +
          '        <ion-col col-auto class="valign">\n' +
          '            <span *ngIf="item.type === \'user\'"> <div class="icon" inlineSVG="icon-tagging-friend.svg"></div></span>\n' +
          '            <span *ngIf="item.type !== \'user\'"><div class="icon" inlineSVG="icon-tagging-venue.svg"></div></span>\n' +
          '        </ion-col>\n' +
          '    </ion-row>'
@agarbund agarbund added the enhancement New feature or request label Nov 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants