Search results

BreadcrumbComponent

Represents the EJ2 Angular Breadcrumb Component.

<ejs-breadcrumb [items]='breadcrumbItems'></ejs-breadcrumb>

Properties

activeItem

string

Specifies the Url of the active Breadcrumb item.

Defaults to

cssClass

string

Defines class/multiple classes separated by a space in the Breadcrumb element.

Defaults to

disabled

boolean

Enable or disable the breadcrumb, when set to true, the breadcrumb will be disabled.

Defaults to false

enableActiveItemNavigation

boolean

Enable or disable the active item navigation, when set to true, active item will be navigable.

Defaults to false

enableNavigation

boolean

Enable or disable the item’s navigation, when set to false, each item navigation will be prevented.

Defaults to true

enablePersistence

boolean

Enable or disable persisting component’s state between page reloads.

Defaults to false

enableRtl

boolean

Enable or disable rendering component in right to left direction.

Defaults to false

itemTemplate

any

Specifies the template for Breadcrumb item.

Defaults to null

items

BreadcrumbItemModel[]

Defines the list of Breadcrumb items.

Defaults to []

maxItems

number

Specifies an integer to enable overflow behavior when the Breadcrumb items count exceeds and it is based on the overflowMode property.

Defaults to -1

overflowMode

string

Specifies the overflow mode of the Breadcrumb item when it exceeds maxItems count. The possible values are,

  • Default: Specified maxItems count will be visible and the remaining items will be hidden. While clicking on the previous item, the hidden item will become visible.
  • Collapsed: Only the first and last items will be visible, and the remaining items will be hidden in the collapsed icon. When the collapsed icon is clicked, all items become visible.
  • Menu: Shows the number of breadcrumb items that can be accommodated within the container space, and creates a sub menu with the remaining items.
  • Wrap: Wraps the items on multiple lines when the Breadcrumb’s width exceeds the container space.
  • Scroll: Shows an HTML scroll bar when the Breadcrumb’s width exceeds the container space.
  • None: Shows all the items on a single line.

Defaults to ‘Menu’

separatorTemplate

any

Specifies the separator template for Breadcrumb.

Defaults to ’/’

url

string

Defines the Url based on which the Breadcrumb items are generated.

Defaults to

Methods

destroy

Destroys the widget.

Returns void

Events

beforeItemRender

EmitType<BreadcrumbBeforeItemRenderEventArgs>

Triggers while rendering each breadcrumb item.

created

EmitType<Event>

Triggers once the component rendering is completed.

itemClick

EmitType<BreadcrumbClickEventArgs>

Triggers while clicking the breadcrumb item.