createIconWidget

Type: Function

How to get createIconWidget?

JavaScript

import createIconWidget from 'fontoxml-families/src/createIconWidget.js'

This widget is used to add an icon with an optional click operation or popover. To use the click operation, supply the operation name in the clickOperation option. Additionally, you can provide initial data for this operation by setting the StepData in the clickOperationInitialData option. To use the popover, supply the popover id in the clickPopoverComponentName option and its data in the popoverData option.

Optionally provide tooltip text on the tooltipContent option.

Arguments

  1. iconName

    (Required)

    Type: String

    The icon name to use. This should be one of the Font Awesome icons. Do not include the fa- prefix, just use the icon names as-is from the documentation.

  2. options

    (Optional)

    Type: Object

    Properties

Returns

Type: Widget