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
Property | Type | Default | Description |
---|---|---|---|
val | array | array of breadcrumb segments; can be strings or objects with a 'name' property | |
on_change | function | optional callback triggered when a new breadcrumb index is selected |
Methods
Method | Description | Parameters | Returns |
---|---|---|---|
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
Property | Type | Description |
---|---|---|
val | array | the current array of breadcrumb segments |
breadcrumb_managers | array | an array of objects that each contain an icon_manager and a button_manager for a segment |
back_button_manager | object | button manager to navigate up one level |
slash_button_manager | object | button manager used for the slash separator |