Class HandlebarsTemplateParams.IconParams
java.lang.Object
com.jalios.jcms.uicomponent.handlebars.HandlebarsTemplateParams.IconParams
- Enclosing class:
HandlebarsTemplateParams
Container class for icon rendering options such as alt text, title, CSS classes, and extra attributes.
- Since:
- jcms-11.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the alt text for the icon.Sets the CSS classes for the icon.getAlt()Returns the alt text.getCss()Returns the CSS classes.Returns the additional HTML attributes.getTitle()Returns the title text.htmlAttributes(String htmlAttributes) Sets additional HTML attributes for the icon tag.Sets the title attribute for the icon.
-
Constructor Details
-
IconParams
public IconParams()Creates an emptyHandlebarsTemplateParams.IconParamsinstance.- Since:
- jcms-11.0.0
-
-
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
Sets additional HTML attributes for the icon tag.- Parameters:
htmlAttributes- extra HTML attributes- Returns:
- this instance for chaining
- Since:
- jcms-11.0.0
-
getAlt
Returns the alt text.- Returns:
- the alternative text
- Since:
- jcms-11.0.0
-
getTitle
Returns the title text.- Returns:
- the title text
- Since:
- jcms-11.0.0
-
getCss
Returns the CSS classes.- Returns:
- the CSS class list
- Since:
- jcms-11.0.0
-
getHtmlAttributes
Returns the additional HTML attributes.- Returns:
- the extra HTML attributes string
- Since:
- jcms-11.0.0
-