Interface UserNotificationOperationBuilder.WithHtmlIcon<T>
-
- All Known Subinterfaces:
UserNotificationOperationBuilder.Growl
,UserNotificationOperationBuilder.Growl.Html
,UserNotificationOperationBuilder.Growl.Text
,UserNotificationOperationBuilder.Growl.WithMessage<T>
- Enclosing interface:
- UserNotificationOperationBuilder
public static interface UserNotificationOperationBuilder.WithHtmlIcon<T>
This interface represents a specific builder to display a notification with a custom html icon.- Since:
- 12.13
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
htmlIcon(java.lang.String htmlIcon)
Applies a custom icon to the notification as html.
-
-
-
Method Detail
-
htmlIcon
T htmlIcon(java.lang.String htmlIcon) throws ValidationException
Applies a custom icon to the notification as html. Only simple html is allowed e.g.:
Not allowed are html elements like iframe, embed, script, etc.<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> <path id="svg_2" d="m15.89584,9.25487c5.56598,-15.35691 27.3737,0 0,19.7446c-27.3737,-19.7446 -5.56598,-35.10151 0,-19.7446z" fill="#ec601a"/> </svg>
- Parameters:
htmlIcon
- an optional custom icon for the notification as html string- Returns:
- the specific
UserNotificationOperationBuilder
instance of type T - Throws:
ValidationException
- if the html string is not valid- Since:
- 12.13
-
-