Add Custom Icons
Survey Creator includes a comprehensive set of built-in SVG icons. If needed, you can also use custom SVG icons. The following example demonstrates how to replace the built-in Survey settings icon in the toolbar with a custom one.
To use a custom SVG icon, follow the steps below:
Obtain an SVG icon.
You can either load an SVG from a file or embed the SVG markup directly in your code.Register the custom icon.
Call theregisterIcon
method on theSvgRegistry
object. Pass the name of the built-in icon you want to replace as the first argument and your custom SVG markup as the second. Refer to the code listing for an example.