public class SvgTag extends Object
| Constructor and Description |
|---|
SvgTag(String iconName)
Creates a new
SvgTag that renders the specified SVG icon of FontAwesome. |
SvgTag(String iconName,
io.jenkins.plugins.util.JenkinsFacade jenkinsFacade)
Creates a new
SvgTag that renders the specified SVG icon of FontAwesome. |
| Modifier and Type | Method and Description |
|---|---|
static SvgTag |
fontAwesomeSvgIcon(String iconName)
Creates a new
SvgTag that renders the specified SVG icon of FontAwesome. |
String |
render()
Renders this tag into plain HTML String representation.
|
SvgTag |
withClasses(String... classNames)
Uses the specified class names for this SVG tag.
|
public SvgTag(String iconName)
SvgTag that renders the specified SVG icon of FontAwesome.iconName - the name of the icon (without fa- prefix), e.g. chevron-circle-up.public SvgTag(String iconName, io.jenkins.plugins.util.JenkinsFacade jenkinsFacade)
SvgTag that renders the specified SVG icon of FontAwesome.iconName - the name of the icon (without fa- prefix), e.g. chevron-circle-up.jenkinsFacade - Jenkins facade to replaced with a stub during unit testspublic static SvgTag fontAwesomeSvgIcon(String iconName)
SvgTag that renders the specified SVG icon of FontAwesome.iconName - the name of the icon (without fa- prefix), e.g. chevron-circle-up.public SvgTag withClasses(String... classNames)
svg-icon as well as class.classNames - the additional class names, might be emptypublic String render()
Copyright © 2016–2020. All rights reserved.