Closed MrTango closed 6 years ago
Bridge's breadcrumbs uses routers chain information to build the list. You can always use original materialize classes and calls to build the one that suits your needs
Hi @MaximBalaganskiy thx for your answer. Does this only work for ic routes without params? I have a route like this:
{
route: 'solution/:articleId/:chapterId',
name: 'chapter',
moduleId: PLATFORM.moduleName('./solution-chapter'),
nav: false,
title: 'Solution Chapter'
},
With the breadcrum I only see "Solution Chapter" when i go to /solution/some-article/some-chapter. I would expect something like "solution > some-article > some-chapter" or even better: somethign like: "Solution > Some Article > Some Chapter".
do i miss something?
Only routes end up in crumbs, not parameters. You can use whatever examples you might find on pure materialize though to build your own control
On Thu., 9 Aug. 2018, 7:22 pm Maik Derstappen, notifications@github.com wrote:
Hi @MaximBalaganskiy https://github.com/MaximBalaganskiy thzour answer. Does this only work for ic routes without params? I have a route like this:
{ route: 'solution/:articleId/:chapterId', name: 'chapter', moduleId: PLATFORM.moduleName('./solution-chapter'), nav: false, title: 'Solution Chapter' },
With the breadcrum I only see "Solution Chapter" when i go to /solution/some-article/some-chapter. I would expect something like "solution > some-article > some-chapter" or even better: somethign like: "Solution > Some Article > Some Chapter".
do i miss something?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aurelia-ui-toolkits/aurelia-materialize-bridge/issues/518#issuecomment-411695077, or mute the thread https://github.com/notifications/unsubscribe-auth/ADimvE9YwzfZF56fGzI4chaumW8xkdoCks5uO_9xgaJpZM4V0LEK .
Please reopen if needed
From the demo and the docs it's not clear how to use the Breadcrumb component in aurelia. The original Breadcrumb component is quite simple and flexible, as it's only a list. How can we create a custom Breadcrumb?