Directory

← Back

iron-icons

Provides an easy way to include Polymer iron-icons inside Vaadin applications

Author

Rating

Popularity

<100

Polymer's icons definitions for Vaadin

Build Status

Provides an easy way to include Polymer iron-icons inside Vaadin applications.

Usage

  • Use your dependencies manager to include this library. Example with Maven:
<dependency>
    <groupId>nc.unc.vaadin.flow.polymer</groupId>
    <artifactId>iron-icons</artifactId>
    <version>${iron-icons.version}</version>
</dependency>
  • Each collection belongs on this own enumeration named by following pattern : Iron[Collection]Icons. For example, communication icons are defined in IronCommunicationIcons enumeration. The collection named 'icons' is defined in IronIcons enumeration.

  • To create an Vaadin Icon component, you must use the create method. Examples:

new Button("Save", IronIcons.SAVE.create());
new Span(IronSocialIcons.SCHOOL.create(), "Congratulations ! Your are graduated.");

Sample code

new Button("Save", IronIcons.SAVE.create());
new Span(IronSocialIcons.SCHOOL.create(), "Congratulations ! Your are graduated.");

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

  • New requirements : Java 11 & Vaadin 23+
  • Fix support of Vaadin 23+
Released
2022-03-28
Maturity
STABLE
License
Apache License 2.0

Compatibility

Framework
Vaadin 23
Vaadin 10+ in 1.0.0
Browser
Browser Independent

iron-icons - Vaadin Add-on Directory

Provides an easy way to include Polymer iron-icons inside Vaadin applications iron-icons - Vaadin Add-on Directory
# Polymer's icons definitions for Vaadin [![Build Status](https://travis-ci.org/unc-dsi/vaadin-flow-iron-icons.svg?branch=master)](https://travis-ci.org/unc-dsi/vaadin-flow-iron-icons) Provides an easy way to include [Polymer iron-icons](https://github.com/PolymerElements/iron-icons) inside Vaadin applications. ## Usage * Use your dependencies manager to include this library. Example with Maven: ``` nc.unc.vaadin.flow.polymer iron-icons ${iron-icons.version} ``` * Each collection belongs on this own enumeration named by following pattern : `Iron[Collection]Icons`. For example, communication icons are defined in `IronCommunicationIcons` enumeration. The collection named 'icons' is defined in `IronIcons` enumeration. * To create an Vaadin `Icon` component, you must use the `create` method. Examples: ``` new Button("Save", IronIcons.SAVE.create()); new Span(IronSocialIcons.SCHOOL.create(), "Congratulations ! Your are graduated."); ```
Issue tracker
Source Code

iron-icons version 1.0.0
First version. Uses: * Vaadin v14.0.8 * Polymer iron-icons v3.0.1

iron-icons version 2.0.0
- New requirements : Java 11 & Vaadin 23+ - Fix support of Vaadin 23+

Online