Class HandlebarsTemplateParams.IconParams

java.lang.Object
com.jalios.jcms.uicomponent.handlebars.HandlebarsTemplateParams.IconParams
Enclosing class:
HandlebarsTemplateParams

public static class HandlebarsTemplateParams.IconParams extends Object
Container class for icon rendering options such as alt text, title, CSS classes, and extra attributes.
Since:
jcms-11.0.0
  • Constructor Details

  • Method Details

    • alt

      Sets the alt text for the icon.
      Parameters:
      alt - the alternative text
      Returns:
      this instance for chaining
      Since:
      jcms-11.0.0
    • title

      Sets the title attribute for the icon.
      Parameters:
      title - the title text
      Returns:
      this instance for chaining
      Since:
      jcms-11.0.0
    • css

      Sets the CSS classes for the icon.
      Parameters:
      css - the CSS class list
      Returns:
      this instance for chaining
      Since:
      jcms-11.0.0
    • htmlAttributes

      public HandlebarsTemplateParams.IconParams htmlAttributes(String htmlAttributes)
      Sets additional HTML attributes for the icon tag.
      Parameters:
      htmlAttributes - extra HTML attributes
      Returns:
      this instance for chaining
      Since:
      jcms-11.0.0
    • getAlt

      public String getAlt()
      Returns the alt text.
      Returns:
      the alternative text
      Since:
      jcms-11.0.0
    • getTitle

      public String getTitle()
      Returns the title text.
      Returns:
      the title text
      Since:
      jcms-11.0.0
    • getCss

      public String getCss()
      Returns the CSS classes.
      Returns:
      the CSS class list
      Since:
      jcms-11.0.0
    • getHtmlAttributes

      public String getHtmlAttributes()
      Returns the additional HTML attributes.
      Returns:
      the extra HTML attributes string
      Since:
      jcms-11.0.0