-
Notifications
You must be signed in to change notification settings - Fork 137
Platform: Breadcrumb Component Technical Design
Kevin Okamoto edited this page Feb 21, 2020
·
8 revisions
The Breadcrumb component is a navigational element. It reveals the hierarchical nature of an application and allows the user to navigate up the hierarchical trail.
<fdp-breadcrumb>
<fdp-breadcrumb-item [id]="'animalsId'" href="/animals">Animals</fdp-breadcrumb-item>
<fdp-breadcrumb-item [id]="'catsId'" href="/animals/cats">Cats</fdp-breadcrumb-item>
<fdp-breadcrumb-item [id]="'tigersId'" href="/animals/cats/tigers">Tigers</fdp-breadcrumb-item>
<fdp-breadcrumb-item [id]="'tiggerId'">Tigger</fdp-breadcrumb-item>
</fdp-breadcrumb>The Breadcrumb component is a container which manages its child BreadcrumbItems. It needs to be aware of the amount of horizontal space it occupies, and the sum of the widths of its child items. If the sum of the widths of its child items exceed the available horizontal space, it needs to create an "overflow" menu, starting from the beginning of the breadcrumb path - i.e. the current or last element of the breadcrumb must always be visible.