File

projects/congarevenuecloud/elements/src/lib/breadcrumb/breadcrumb.component.ts

Description

The Breadcrumb component generates links which allow users to navigate to different pages.

Preview

Usage

Example :
import { BreadcrumbModule } from '@congarevenuecloud/elements';

@NgModule({
imports: [BreadcrumbModule, ...]
})
export class AppModule {}
Example :
// Generate breadcrumb from AObject record
```typescript
<apt-breadcrumb [sobject]="product"></apt-breadcrumb>
Example :
// Pass in a defined array of breadcrumbs.
```typescript
<apt-breadcrumb
             [label]="myLabel"
             [breadcrumbs]="myBreadcrumbs"
             [autoGenerated]="false"
></apt-breadcrumb>

Implements

OnChanges OnDestroy

Metadata

Index

Inputs

Constructor

constructor(categoryService: CategoryService, aobjectService: AObjectService, translateService: TranslateService)
Parameters :
Name Type Optional
categoryService CategoryService No
aobjectService AObjectService No
translateService TranslateService No

Inputs

autoGenerated
Type : boolean
Default value : true

Flag to generate the breadcrumbs based on the given AObject record.

breadcrumbs
Type : Array<BreadcrumbLink>

Array of breadcrumb links to use to create the set of breadcrumbs. This will override the system from generating breadcrumbs based on any given AObject record.

label
Type : string

Label to use for current location.

route
Type : string

Route to use for breadcrumb navigation.

sobject
Type : AObject

AObject record to use for this component to generate breadcrumbs.

./breadcrumb.component.scss

Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""