agentsclimarketplace

Syncfusion aspnetcore breadcrumb

Skill syncfusion/aspnetcore-ui-components-skills/skills/syncfusion-aspnetcore-breadcrumb

This repository contains AI Skills of ASPNET Core UI Components

Install
npx -y skills add syncfusion/aspnetcore-ui-components-skills --skill syncfusion-aspnetcore-breadcrumb

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Display hierarchical navigation paths with the ASP.NET Core Breadcrumb control. Use this skill when implementing breadcrumb navigation, handling item binding, configuring overflow behavior, or customizing templates and icons.

SKILL.md

8.9 KB, as published. Nobody here has run it

Implementing Breadcrumb Navigation in ASP.NET Core

The Breadcrumb component displays a hierarchical navigation path that helps users understand their location within your application. It enables navigation through parent pages and supports flexible data binding, templates, icons, and overflow handling.

When to Use This Skill

Use this skill when you need to:

  • Display a hierarchical navigation breadcrumb in your ASP.NET Core application
  • Bind breadcrumb items from a collection or generate them from the current URL
  • Customize breadcrumb appearance using templates, icons, or CSS classes
  • Handle breadcrumb item clicks and render events
  • Implement overflow behavior for long breadcrumb trails
  • Support RTL rendering or disable specific items

Component Overview

The Breadcrumb component is a navigation UI element that:

  • Shows the current page position in a hierarchical structure
  • Allows users to navigate to parent-level pages
  • Renders items with optional icons, templates, and separators
  • Supports multiple overflow modes (Collapsed, Hidden, Menu, Wrap, Scroll, None)
  • Triggers events for item rendering and clicks
  • Works with ASP.NET Core TagHelper syntax

Key Properties:

  • items - Array of BreadcrumbItem objects to display
  • url - Automatically generate items from a URL path
  • activeItem - Mark a specific item as currently active
  • enableNavigation - Control whether items are navigable
  • overflowMode + maxItems - Handle long breadcrumb trails
  • itemTemplate + separatorTemplate - Customize rendering

Key Events:

  • beforeItemRender - Fires before each item renders (for customization)
  • itemClick - Fires when a breadcrumb item is clicked
  • created - Fires after the component is fully initialized

Documentation and Navigation Guide

Choose the reference file that matches your implementation need:

Getting Started

πŸ“„ Read: references/getting-started.md

  • Setting up Syncfusion.EJ2.AspNet.Core package
  • Registering TagHelper and adding resources
  • Creating your first breadcrumb control
  • Binding items collection
  • Controlling item navigation

Data Binding and Items

πŸ“„ Read: references/data-binding.md

  • Binding items using e-breadcrumb-items tag directive
  • Generating items from the current page URL
  • Generating items from a static URL
  • Using beforeItemRender to customize generated items
  • Dynamic item binding patterns

Navigation and URLs

πŸ“„ Read: references/navigation.md

  • Defining relative and absolute URLs
  • Enabling navigation for the active (last) item
  • Controlling which items trigger navigation
  • Using beforeItemRender for URL manipulation
  • Handling navigation events with itemClick

Icons and Visual Elements

πŸ“„ Read: references/icons.md

  • Adding font icons with iconCss property
  • Using image files as icons
  • Displaying SVG icons
  • Positioning icons (left vs. right)
  • Combining icons with item text

Templates and Customization

πŸ“„ Read: references/templates.md

  • Customizing item appearance with itemTemplate
  • Customizing separators with separatorTemplate
  • Using conditional logic in templates
  • Integrating other components (like chips) in templates
  • Template event binding patterns

Overflow and Responsive Display

πŸ“„ Read: references/overflow-modes.md

  • Understanding overflow modes and maxItems
  • Collapsed mode (shows first/last only)
  • Hidden mode (progressive reveal)
  • Menu mode (submenu overflow)
  • Wrap mode (multiple lines)
  • Scroll mode (HTML scrollbar)
  • None mode (single line, no truncation)

Advanced Customization

πŸ“„ Read: references/customization.md

  • Applying CSS classes to the component
  • RTL (right-to-left) rendering
  • Disabling items and the component
  • Persisting breadcrumb state
  • Using beforeItemRender for advanced customization

Complete API Reference

πŸ“„ Read: references/api-reference.md

  • All properties, methods, and events
  • Event argument structures
  • Overflow mode enumeration
  • Examples for less-covered APIs

Quick Start Example

Here's a minimal breadcrumb implementation:

<!-- In _Layout.cshtml or _ViewImports.cshtml -->
@addTagHelper *, Syncfusion.EJ2

<!-- In your page (e.g., Index.cshtml) -->
<ejs-breadcrumb>
    <e-breadcrumb-items>
        <e-breadcrumb-item text="Home" url="~/"></e-breadcrumb-item>
        <e-breadcrumb-item text="Products" url="~/products"></e-breadcrumb-item>
        <e-breadcrumb-item text="Electronics" url="~/products/electronics"></e-breadcrumb-item>
        <e-breadcrumb-item text="Laptops"></e-breadcrumb-item>
    </e-breadcrumb-items>
</ejs-breadcrumb>

What this does:

  • Renders 4 breadcrumb items
  • First 3 items are navigable (have URLs)
  • Last item (Laptops) is the current page, not navigable
  • Breadcrumb displays: Home > Products > Electronics > Laptops

Common Patterns

Pattern 1: URL-Based Generation

Let the Breadcrumb automatically generate items from the page URL:

<ejs-breadcrumb url="https://example.com/products/electronics/laptops">
</ejs-breadcrumb>

When to use: When you want automatic breadcrumbs that follow the URL structure.

Pattern 2: Controlling Navigation

Disable navigation entirely or only for the active item:

<ejs-breadcrumb enableNavigation="false">
    <!-- Items won't be clickable -->
</ejs-breadcrumb>

<ejs-breadcrumb enableActiveItemNavigation="true">
    <!-- Last item becomes clickable when URL is set -->
</ejs-breadcrumb>

Pattern 3: Handling Overflow

Use overflow modes for long breadcrumb trails:

<ejs-breadcrumb overflowMode="Collapsed" maxItems="3">
    <!-- Only first/last shown, others hidden in icon -->
</ejs-breadcrumb>

Pattern 4: Item Click Handling

Respond to item clicks with the itemClick event:

<ejs-breadcrumb itemClick="OnBreadcrumbItemClick">
    <e-breadcrumb-items>
        <e-breadcrumb-item text="Home" url="~/"></e-breadcrumb-item>
        <e-breadcrumb-item text="Dashboard" url="~/dashboard"></e-breadcrumb-item>
    </e-breadcrumb-items>
</ejs-breadcrumb>

In your C# handler:

public void OnBreadcrumbItemClick(BreadcrumbClickEventArgs args)
{
    // Handle item click
    var clickedItem = args.Item;
}

Key Properties Summary

PropertyTypePurpose
itemsBreadcrumbItemModel[]Collection of breadcrumb items to display
urlstringAuto-generate items from a URL path
activeItemstringURL/identifier of the currently active item
enableNavigationbooleanAllow/prevent item navigation (default: true)
enableActiveItemNavigationbooleanMake the last item navigable (default: false)
maxItemsnumberThreshold for triggering overflow behavior
overflowModestringHow to display items beyond maxItems (Collapsed, Hidden, Menu, Wrap, Scroll, None)
itemTemplatestring | FunctionCustom template for item rendering
separatorTemplatestring | FunctionCustom template for separators
enableRtlbooleanRender right-to-left (default: false)
disabledbooleanDisable the entire component (default: false)
cssClassstringApply CSS classes to the component
enablePersistencebooleanPersist component state between page reloads

Common Use Cases

Use Case 1: E-Commerce Breadcrumb Navigate through product categories: Home > Electronics > Laptops > Gaming Laptops

Use Case 2: File Browser Show file path: Root > Documents > Projects > MyProject

Use Case 3: Multi-Step Form Indicate form progress: Step 1 > Step 2 > Step 3 (Current)

Use Case 4: Documentation Site Navigate documentation hierarchy: Docs > API > Components > Breadcrumb

Use Case 5: Admin Dashboard Show user path: Dashboard > Users > Admin > Edit Profile


Next Steps

  1. Get Started: Follow Getting Started for installation and basic setup
  2. Bind Data: Use Data Binding to connect breadcrumb items
  3. Customize: Explore Templates and Icons for personalization
  4. Optimize: Handle long trails with Overflow Modes
  5. Reference: Check API Reference for complete API details

For detailed implementation patterns, event handling, and advanced scenarios, see the corresponding reference files.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.