Skip to content

Add Icon #13

Answered by udayvunnam
lenichols asked this question in Q&A
Discussion options

You must be logged in to vote

@lenichols -- Good news. I have added this ability to provide custom icons.

With latest xng-breadcrumb release, you can provide custom template for breadcrumb, where you can add icons and change text as you wish.

Refer - https://github.com/udayvunnam/xng-breadcrumb#customize-breadcrumb-template-add-icons-change-text-i18n

How to add icons ?

  • define info associated with breadcrumb in route config.
  • info is available in template context of *xngBreadcrumbItem .
  {
    path: '',
    pathMatch: 'full',
    component: HomeComponent,
    data: {
      breadcrumb: {
        label: 'app home',
        info: 'home'
      }
    }
  }
<xng-breadcrumb>
  <ng-container *xngBreadcrumbItem="let breadcrum…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by udayvunnam
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #13 on December 09, 2020 02:59.