com.holonplatform.vaadin.flow.components.builders

## Interface HasIconConfigurator.IconConfigurator<C extends HasIconConfigurator<C>>

- Type Parameters:
    `C` - Parent configurator
  All Superinterfaces:
    HasStyleConfigurator<HasIconConfigurator.IconConfigurator<C>>
  Enclosing interface:
    HasIconConfigurator<C extends HasIconConfigurator<C>>

      public static interface HasIconConfigurator.IconConfigurator<C extends HasIconConfigurator<C>>
      extends HasStyleConfigurator<HasIconConfigurator.IconConfigurator<C>>

  Configurator to setup a component icon.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface com.holonplatform.vaadin.flow.components.builders.HasStyleConfigurator

      `HasStyleConfigurator.BaseHasStyleConfigurator`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `C` | `add()` Add the configured icon to the component.
    `HasIconConfigurator.IconConfigurator<C>` | `color(String color)` Sets the fill color of the icon.
    `HasIconConfigurator.IconConfigurator<C>` | `size(String size)` Sets the width and the height of the icon.

    - ### Methods inherited from interface com.holonplatform.vaadin.flow.components.builders.HasStyleConfigurator

      `create, styleName, styleNames`

- - ### Method Detail

    - #### size

          HasIconConfigurator.IconConfigurator<C> size(String size)

      Sets the width and the height of the icon.

      The size should be in a format understood by the browser, e.g. "100px" or "2.5em".

      Parameters:
        `size` - the size to set, may be `null` to clear the value
      Returns:
        this

    - #### color

          HasIconConfigurator.IconConfigurator<C> color(String color)

      Sets the fill color of the icon.

      The color should be in a format understood by the browser, e.g. "orange", "#FF9E2C" or "rgb(255, 158, 44)".

      Parameters:
        `color` - the fill color to set, may be `null` to clear the value
      Returns:
        this

    - #### add

          C add()

      Add the configured icon to the component.
      Returns:
        Parent component configurator

Copyright © 2020 The Holon Platform. All rights reserved.