Giter Club home page Giter Club logo

Comments (11)

github-actions avatar github-actions commented on July 22, 2024 2

Hello 👋 @AndriesN
Thank you for raising an issue. We will investigate into the issue and get back to you as soon as possible. Please make sure you have given us as much context as possible.
Feel free to raise a PR if you can fix the issue. Check the local development guide

from xng-breadcrumb.

anuj9196 avatar anuj9196 commented on July 22, 2024 1

I also want this feature.

Basically, the requirement is that some elements exist on a path without a parent component, but logically are part of a parent component.

Example

Home > Quiz > Quiz 1 > Session > Session 1

I want breadcrumb like this, but the actual path to Session 1 is

{
    path: '/quiz/session',
    data: {breadcrumb: {alias: 'quizName'}}
    children: [
        {
            path: ':id',
            component: SessionComponent,
            data: {breadcrumb: {alias: 'sessionName'}}
        }
    ]
}

Now with this path, I can only set the breadcrumb to the :id path and cannot set the Quiz > Quiz 1 in the breadcrumb.

If support to add multiple breadcrumbs is given, it can be something like

this.breadcrumbService.add([['/quiz', 'Quiz'], ['@quizName', this.getQuizName()], ['/quiz/session', 'Session'], ['@sessionName', this.getSessionName()]);

from xng-breadcrumb.

gabrielbergoc avatar gabrielbergoc commented on July 22, 2024

I want this functionality too

from xng-breadcrumb.

udayvunnam avatar udayvunnam commented on July 22, 2024

@AndriesN @gabrielbergoc Can you confirm the below understanding of the requirement

Instead of

breadcrumbService.set('mentors', 'Mentor View');
breadcrumbService.set('mentor/:id', 'Uday Vunnam');

we want
breadcrumbService.add('mentors', 'Mentor View').add('mentor/:id', 'Uday Vunnam')

to make it easy to define the dynamic breadcrumbs?

from xng-breadcrumb.

gabrielbergoc avatar gabrielbergoc commented on July 22, 2024

That would work for me!
But maybe add the "add" method, not replace "set"? I don't know if it's possible...
Like, the current interface and behavior remain unchanged, but at page "x" I may want to add, besides "x", "y" and "z", so that they remain in the breadcrumbs if I navigate further, and when I navigate backwards, only "x > y > z" are removed.
And maybe another methods like "remove", "has", etc.

from xng-breadcrumb.

AndriesN avatar AndriesN commented on July 22, 2024

Yes, that would be great!

from xng-breadcrumb.

stale avatar stale commented on July 22, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from xng-breadcrumb.

udayvunnam avatar udayvunnam commented on July 22, 2024

not stale

from xng-breadcrumb.

stale avatar stale commented on July 22, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from xng-breadcrumb.

github-actions avatar github-actions commented on July 22, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from xng-breadcrumb.

FedeTommi avatar FedeTommi commented on July 22, 2024

Any update on this?

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.