Comments (4)
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.
I also have a need for this functionality now.
from xng-breadcrumb.
In progress - @dhallatmaine. Will release in a week
from xng-breadcrumb.
@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)
- Errors after updating to Angular 14 HOT 3
- Breadcrumb link disappears on CanDeactivate guard check HOT 5
- Accessibility on breadcrumb's separator HOT 3
- "[preserveQueryParams]" is not working after page refreshed. HOT 4
- Translation Support HOT 2
- Unable to setup breadcrumb for certain route paths HOT 8
- Breadcrumbs are not displayed for lazy loaded module HOT 3
- update xng-breadcrumb demo app that uses Material UI HOT 7
- Module not found when using BreadcrumbService from another module in which the BreadCrumbsModule is imported HOT 2
- Set multiple breadcrumbs regardless of route HOT 11
- Need docs! HOT 2
- xng-breadcrumb not working in Angular Ionic HOT 2
- Hiding the breadcrumbs with one level only HOT 3
- Breadcrumb doesn't work on routes using `matcher` HOT 5
- Property '"autoGenerate"' is incompatible with index signature. HOT 3
- Double rendering with provideClientHydratation Angular 16 HOT 4
- Customizing breadcrumb HOT 3
- Breadcrumb Links Not Working HOT 4
- Breadcrumb labels no longer working with loadChildren HOT 5
- Duplicate breadcrumbs on Angular 17 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xng-breadcrumb.