Class SvgTag
java.lang.Object
io.jenkins.plugins.fontawesome.api.SvgTag
Textual SVG tag representation that shows a FontAwesome icon.
- Author:
- Ullrich Hafner
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SvgTagfontAwesomeSvgIcon(String iconName) Creates a newSvgTagthat renders the specified SVG icon of FontAwesome.render()Renders this tag into plain HTML String representation.withClasses(String... classNames) Uses the specified class names for this SVG tag.
-
Constructor Details
-
SvgTag
Creates a newSvgTagthat renders the specified SVG icon of FontAwesome.- Parameters:
iconName- the name of the icon (without fa- prefix), e.g.chevron-circle-up.
-
SvgTag
Creates a newSvgTagthat renders the specified SVG icon of FontAwesome.- Parameters:
iconName- the name of the icon (without fa- prefix), e.g.chevron-circle-up.jenkinsFacade- Jenkins facade to replaced with a stub during unit tests
-
-
Method Details
-
fontAwesomeSvgIcon
Creates a newSvgTagthat renders the specified SVG icon of FontAwesome.- Parameters:
iconName- the name of the icon (without fa- prefix), e.g.chevron-circle-up.- Returns:
- the HTML tag
-
withClasses
Uses the specified class names for this SVG tag. Adds the tagsvg-iconas well as class.- Parameters:
classNames- the additional class names, might be empty- Returns:
- this tag
-
render
Renders this tag into plain HTML String representation.- Returns:
- the tag as HTML String
-