default

Class

This base class defines some common methods for a widget. A widget is a React component. We don't recommend extending this class. Use the functional React component instead.

Inheritance: defaultPureComponent<PS>

Constructors

Properties

PropertyTypeNotes
(stateIMState, ownPropsPartial<AllWidgetProps<any>>) => any

The framework has injected many props into the widget props. Check AllWidgetProps to see the details. If your widget needs to use more state, you can use this function. However, for functional components, the useSelector hook is recommended.

The version manager of a widget (optional)

mapExtraStateProps

static
Class Property
mapExtraStateProps: (stateIMState, ownPropsPartial<AllWidgetProps<any>>) => any

The framework has injected many props into the widget props. Check AllWidgetProps to see the details. If your widget needs to use more state, you can use this function. However, for functional components, the useSelector hook is recommended.

Type declaration
    function(stateIMState, ownPropsPartial<AllWidgetProps<any>>): any
    Parameters
    ParameterType
    state
    IMState
    ownProps
    Partial<AllWidgetProps<any>>
    Returns 
    any

versionManager

staticoptional
Class Property
versionManager: WidgetVersionManager | BaseVersionManager<any>

The version manager of a widget (optional)

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.