Custom Icons
SurveyJS Form Library ships with a vast collection of built-in SVG icons. You can also use custom SVG icons if required. This example shows how you can replace built-in "tick" icons in a Checkboxes question with custom "cross" icons.
To use a custom SVG icon, follow the steps below:
Obtain an SVG icon.
You can fetch an SVG icon from a file or embed SVG content directly in your code.Register the custom icon.
Call theregisterIconFromSvg
method on theSvgRegistry
object. Pass the name of the built-in icon to replace as the first argument and the custom icon markup as the second argument. Refer to the code listing for an example.