Add-on Directory

← Back

Breadcrumb Component

Component providing an easy way to display breadcrumb on web pages

Author

Contributors

Rating

Popularity

400+

Usage

Component providing an easy way to display breadcrumb on web pages. Breadcrumbs will be separated by ">" symbol. Clicking on any breadcrumb(except last one) will navigate user to page which is represented by this breadcrumb. It's possible to hide some of breadcrumbs on smaller viewports.

Updates since version 3.0.0

  • Web component part (version 2.0.0) is now Lit based.
  • The first item in the breadcrumb is always shown in full.
  • The items can be collapsed when space runs out. This is configurable by using the attribute collapse. When availabe space is not enough to display the full label, then the label is shown with ellipsis.
  • If space is even more limited, and some breadcrumbs have the collapse attribute:
    • Consecutive collapsed items are grouped into ranges.
    • Each range is hidden when necessary and replaced with an ellipsis element.
  • shift attribute from previous version was removed. Responsive behavior is now given by the collapse attribute implementation.

For example:

Breadcrumbs breadcrumbs = new Breadcrumbs();
breadcrumbs.add(
    new Breadcrumb("Home","breadcrumbs/#"),
    new Breadcrumb("Directory","breadcrumbs/#"),
    new Breadcrumb("Components", "breadcrumbs/#", true),
    new Breadcrumb("VCF Components", "breadcrumbs/#", true),
    new Breadcrumb("Breadcrumbs"));

Breadcrumb "Components" & "VCF Components" will collapse and show ellipsis when space available for display is not enough.

Since version 3.1.0

  • New feature to display a popover when clicking on the ellipsis element, to show the hidden breadcrumbs items .

Client-side implementation

This is the server-side (Java) API for Vaadin Platform for the vcf-breadcrumb component. Looking for the client-side version? It can be found here.

Vaadin platform version

  • Support for Vaadin 14+ is starting from version 2.0.0.
  • Support for Vaadin 24.5+ starts from version 3.0.0.

License & Author

This Add-on is distributed under Apache 2.0

Component Factory Breadcrumb is written by Vaadin Ltd.

Sponsored development

Major pieces of development of this add-on has been sponsored by multiple customers of Vaadin. Read more about Expert on Demand at: Support and Pricing

Sample code

Breadcrumbs breadcrumbs = new Breadcrumbs();
breadcrumbs.add(
    new Breadcrumb("Home","breadcrumbs/#", true),
    new Breadcrumb("Components", "breadcrumbs/#", true),
    new Breadcrumb("VCF Components", "breadcrumbs/#"),
    new Breadcrumb("Breadcrumbs"));

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Update web-component version to 2.1.1. This new web-component version contains fix to show focus ring without clipping.

Released
2025-03-06
Maturity
TESTED
License
Apache License 2.0

Compatibility

Framework
Vaadin 24.5
Vaadin 24.6
Vaadin 14 in 2.0.1
Vaadin 14+ in 2.0.0
Vaadin 10+ in 1.2.0
Browser
N/A

papa-parse - Vaadin Add-on Directory

Polymer 2.0 element for CSV parsing with Papa parse. papa-parse - Vaadin Add-on Directory
**[ This description is mirrored from README.md at [github.com/PolymerVis/papa-parse](https://github.com//PolymerVis/papa-parse/blob/2.0.1/README.md) on 2019-05-10 ]** papa-parse [![GitHub release](https://img.shields.io/github/release/PolymerVis/papa-parse.svg)](https://github.com/PolymerVis/papa-parse/releases) [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/PolymerVis/papa-parse) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) ========== ```html

Parsed CSV table:

Csv string

[[csvStr]]
``` ## Installation ``` bower install --save PolymerVis/papa-parse ``` ## Documentation and demos More details @ [webcomponents.org](https://www.webcomponents.org/element/PolymerVis/papa-parse). ## Disclaimers PolymerVis is a personal project and is NOT in any way affliated with Papaparse, Polymer or Google. # papa-parse `papa-parse` is a Polymer 2.0 element to parse CSV files into JSON object(s) with [Papa parse](http://papaparse.com/). `papa-parse` can download and parse a csv file via `url`, or from raw csv strings via `raw`, and File object via `file`. If the `auto` flag is set, `papa-parse` will automatically start the job, otherwise a manual call to the function `start` will be needed. Parse from URL. ```html ``` Parse from raw csv String. ```html ``` Parse from FileReader ```html ``` ```javascript this.$.selectfile .addEventListener('change', function(e) { this.file = e.target.files[0]; }); ``` There are 2 possible outputs for `rows` - an *array of array of values*, or an *array of objects*. An array of array is returned if the `header` flag is not set, and an array of objects otherwise, where each object is a map comprising of the column name and its corresponding value for the row (e.g. {col1: value1, col2: value2}). ### Handling big files Parsing is synchronous and may block the UI thread (i.e. freeze the screen) if the csv file is big. Parsing with a web-worker via `worker` flag is recommended for big file. However, note that `papaparse.min.js` *should not be bundled* during the build process if web-worker is required as the web-worker needs to load the script. You will also need to correctly reference the location of the script via the `script-path` attribute. You should not use relative path if parsing from `url`, as the web-worker may load from an incorrect path. ```html ``` ```javascript function handleRecord(e, {data, meta, errors}) { console.log(data); } ``` Streaming via `stream` flag is also recommended for big file (`stream` and `worker` are not dependent on each other). However, when `stream` flag is set, `rows` attribute will only return an empty array as none of the records will be persisted. Instead, `papa-parse` will emit an `stream` event of the form {{data: Array[]|Object[], meta: Object, errors: Array, parser: Object}} for each record parsed. ```html ``` ```javascript function start() { app.$.parser.start(); } function handleRecord(e, {data, meta, errors}) { alert(JSON.stringify(data)); app.$.parser.pause(); } ``` # papa-unparse `papa-unparse` is a Polymer 2.0 element to convert JSON arrays or objects into CSV strings with [Papa parse](http://papaparse.com/). **Basic usage** For array of objects, e.g. [{col1: 1, col2: 2}, {col1: 3, col2: 4}] ```html ``` For array of arrays, e.g. [[1,2], [3,4]] ```html ``` ### Download as CSV file ```html ``` ```javascript function download() { document.querySelector('papa-unparse').downloadCsv('somefile.csv'); } ``` ### Other options ```html ```
GitHub Homepage
Issue tracker
Online Demo
License
Documentation
View on GitHub

papa-parse version 2.0.0
### Dependencies Polymer/polymer#^2.0.0 * papaparse#^4.3.6

papa-parse version 2.0.1
### Dependencies Polymer/polymer#^2.0.0 * papaparse#^4.3.6

Online