Breadcrumbs Showcase

Example

Example named

Component Documentation

Component Name

Breadcrumbs

Builder Function Name

create_breadcrumbs_manager

Description

manages a breadcrumb navigation array, providing back, slash, and clickable segment buttons

Use like example

Config

PropertyTypeDefaultDescription
valarray

array of breadcrumb segments; can be strings or objects with a 'name' property

on_changefunction

optional callback triggered when a new breadcrumb index is selected

Methods

MethodDescriptionParametersReturns
set_val

sets or updates the current array of breadcrumb segments and regenerates the sub-managers

input: array

void
select_path_breadcrumb_index

truncates the breadcrumb array at the selected index and invokes on_change if provided

i: number

void

Returned Properties

PropertyTypeDescription
valarray

the current array of breadcrumb segments

breadcrumb_managersarray

an array of objects that each contain an icon_manager and a button_manager for a segment

back_button_managerobject

button manager to navigate up one level

slash_button_managerobject

button manager used for the slash separator

icon
Sponsored byContibase