Git Product home page Git Product logo

Comments (4)

udayvunnam avatar udayvunnam commented on June 19, 2024

Hi @CNicolas, this would have been possible by, passing additional context to breadcrumb and stopping the click events for route patterns that don't need it.

  • define 'info' associated with the breadcrumb in route config. 'info' has type . you can pass string or object or boolean as you need.
  • 'info' is available in the context of *xngBreadcrumbItem.
  {
    path: '',
    pathMatch: 'full',
    component: HomeComponent,
    data: {
      breadcrumb: {
        label: 'app home',
        info: { skipLink: true }
      }
    }
  }
<xng-breadcrumb>
  <ng-container *xngBreadcrumbItem="let breadcrumb; let info = info>
    <span [ngClass]="{'skip-link': info && info.skipLink}">{{ breadcrumb }}</span>
  </ng-container>
</xng-breadcrumb>
.skip-link {
   pointer-events: none;
   cursor: default;
}

Since the customization control is given only to breadcrumb text but not the or , the above implementation will not work.

Two possible solutions:

  • Give the customization control at or level(more work for the user and I am not inclined towards this solution.)
  • provide an extra option like unlink: true in the breadcrumb. I will implement this and release a new version.

Thanks for raising this feature request. I will keep you posted!

from xng-breadcrumb.

dhallatmaine avatar dhallatmaine commented on June 19, 2024

I also have a need for this functionality now.

from xng-breadcrumb.

udayvunnam avatar udayvunnam commented on June 19, 2024

In progress - @dhallatmaine. Will release in a week

from xng-breadcrumb.

udayvunnam avatar udayvunnam commented on June 19, 2024

@CNicolas @dhallatmaine This feature is available with [email protected] onwards.

please check https://github.com/udayvunnam/xng-breadcrumb#dibsable-breadcrumb-navigation-for-certain-routes

from xng-breadcrumb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.