Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (152).NET Core  (26)Angular  (49)ASP.NET  (48)ASP.NET Core  (64)ASP.NET MVC  (86)Azure  (29)Blazor  (107)DocIO  (20)Essential JS 2  (72)Essential Studio  (164)File Formats  (20)Flutter  (115)JavaScript  (150)Microsoft  (102)PDF  (59)React  (33)Succinctly series  (124)Syncfusion  (490)TypeScript  (30)Uno Platform  (3)UWP  (4)Vue  (26)Webinar  (27)Windows Forms  (55)WinUI  (27)WPF  (123)Xamarin  (132)XlsIO  (24)Other CategoriesBarcode  (4)BI  (29)Bold BI  (4)Build conference  (6)Business intelligence  (53)Button  (4)C#  (108)Chart  (53)Cloud  (10)Company  (445)Dashboard  (6)Data Science  (3)Data Validation  (5)DataGrid  (50)Development  (263)Doc  (7)DockingManager  (1)eBook  (94)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (20)Extensions  (15)File Manager  (4)Gantt  (9)Gauge  (7)Git  (4)Grid  (27)HTML  (9)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (233)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (25)Performance  (7)PHP  (1)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (6)Road Map  (9)Scheduler  (29)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (19)Solution Services  (2)Spreadsheet  (10)SQL  (7)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (11)Tips and Tricks  (65)UI  (139)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (1)Visual Studio  (19)Visual Studio Code  (13)Web  (227)What's new  (146)Windows 8  (19)Windows App  (1)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Share on twitter
Share on facebook
Share on linkedin
Introducing JavaScript Breadcrumb Control in Essential JS 2

Introducing JavaScript Breadcrumb Control in Essential JS 2

We are happy to introduce the new JavaScript Breadcrumb control in the Essential JS 2 suite.

The Breadcrumb component is a graphical user interface that serves as a navigation header for your web application or site. It helps to identify or highlight the current location within the hierarchical structure of a website.

The Essential JS 2 suite has a huge set of controls, and all these controls possess common web standards and functionalities such as web accessibility, right-to-left rendering, keyboard interaction, modular architecture, and responsiveness, with touch-friendly and lightweight UIs. Now, the Breadcrumb is included in this suite with all these JS 2 features as well as control-specific features.

This blog will provide a walk-through on the new Breadcrumb control, its UI designs, its features, and the platforms it supports.

Breadcrumb UI design

We have designed the Breadcrumb control to be flexible, responsive, and completely customizable. The following are the two elements of a Breadcrumb control:

  • Breadcrumb item: The navigation item of the link.
  • Breadcrumb separator: The separator between breadcrumb items.
Elements of JavaScript Breadcrumb Component
Elements of JavaScript Breadcrumb Component

Use cases

We can use the Breadcrumb control as a navigation header for web applications or websites. Also, we can use it as a secondary navigation tool to identify the current location without navigation.

The following are some real-world scenarios the Breadcrumb control will best fit:

  • E-commerce sites: The hierarchical categories of a product can be displayed with its parent category in navigation links.
  • Search engines: Showcase the current location with the parent root in the search results.
  • Support tickets: Display the current support ticket with its platforms and parent navigation.

Existing features

The following is the list of key features available in the Breadcrumb control:

BindToLocation or URL binding

The BindToLocation feature of the Breadcrumb control generates items automatically using the current location in a web application when both items and URL properties are not specified.

Alternatively, when an absolute or a relative URL is specified, the items are generated based on the provided URL.

Note: Refer to the Breadcrumb binding example for more details.

Items with icons

The JavaScript Breadcrumb control comes with built-in icon support for the visual representation of the items. By default, the Breadcrumb aligns the icons on the left side of the text, but if required, we can place them on the right side.

JavaScript Breadcrumb displaying items with icons
JavaScript Breadcrumb Displaying Items with Icons

UI customization with custom item and separator templates

We can create custom user experiences using the templates.  Also, we can customize both breadcrumb items and separators using the template support. Using this, you can completely modify the appearance of the Breadcrumb with HTML elements and other components.

Custom items and separator templates in JavaScript Breadcrumb
Custom Items and Separator Templates in JavaScript Breadcrumb

Note: Refer to the Breadcrumb template and customization sample for more details.

You can limit the number of items displayed in a breadcrumb control. The following are the overflow modes available:

  • Default: Shows the maximum number of items possible in the container space and hides the remaining items. Clicking on a previous item will show the hidden items.
  • Collapsed: Shows the first and last breadcrumb items and hides the remaining items with a collapsed icon. When we click the collapsed icon, all items become visible and navigable.

Note: Refer to the Breadcrumb overflow sample for more details.

Keyboard accessibility

All our Essential JS 2 suite controls follow keyboard interaction and web accessibility standards. So, users can easily interact with the Breadcrumb control using their keyboard. Use the following keyboard shortcuts to handle the Breadcrumb control:

  • Tab: To navigate to the next item.
  • Shift + Tab: To navigate to the previous item.
  • Enter: To perform click action on an item.

Responsive and touch-friendly

By default, the Breadcrumb control is both responsive and touch-friendly. It will adapt to all mobile devices based on the screen size. The Breadcrumb control UI automatically changes to overflow mode, when we change the screen size. This enables the control to render adaptively based on the device, providing optimal user experience on phones, tablets, and desktops applications.

Upcoming features

The Breadcrumb control is now available in preview mode, and we plan to enhance the overflow support with the following modes in future releases:

  • Menu: Shows the number of breadcrumb items that can be accommodated within the container space and creates a submenu 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.

How to use it

We can implement the Breadcrumb control on all major platforms as a navigation tool. It has a huge set of resources for developers, including source code on GitHub, live demos in our sample browser, and customization features in the documentation.

Supported platforms

The following platforms support Breadcrumb.

PlatformLive demoDocumentation
AngularAngular Breadcrumb demosGetting started with Angular Breadcrumb
ReactReact Breadcrumb demosGetting started with React Breadcrumb
VueVue Breadcrumb demosGetting started with Vue Breadcrumb
JavaScriptJavaScript Breadcrumb demosGetting started with JavaScript Breadcrumb
ASP.NET MVCASP.NET MVC Breadcrumb demosGetting started with ASP.NET MVC Breadcrumb
ASP.NET CoreASP.NET Core Breadcrumb demosGetting started with ASP.NET Core Breadcrumb

Conclusion

We hope you enjoyed this quick introduction to the design and available features of Essential JS 2’s new Breadcrumb control. If you would like to give it a try, please download our latest version of Essential Studio, 2021 Volume 3, and provide your valuable feedback.

If you have any questions, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Related blogs

Tags:

Share this post:

Share on twitter
Share on facebook
Share on linkedin
Popular Now

Be the first to get updates

Subscribe RSS feed
Scroll To Top