Skip to content

WidgetStaticMethods

Interface

The static methods of a widget.

Properties

PropertyTypeNotes
getFullConfig(configany) => any

A widget can just save partial of its config in an app config. In the runtime, the widget can use this function to get the full config.

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

If a widget needs more state, it can use this function to map the state to the props.

versionManagerBaseVersionManager

The version manager of a widget (optional)

getFullConfig

optional
Interface Property
getFullConfig: (configany) => any

A widget can just save partial of its config in an app config. In the runtime, the widget can use this function to get the full config.

Type declaration
    function(configany): any
    Parameters
    ParameterTypeNotes
    configany

    The config saved in the app config

    Returns 
    any

    The full config

mapExtraStateProps

optional
Interface Property
mapExtraStateProps: (stateIMState, ownPropsPartial<AllWidgetProps<any>>) => any

If a widget needs more state, it can use this function to map the state to the props.

Type declaration
    function(stateIMState, ownPropsPartial<AllWidgetProps<any>>): any
    Parameters
    ParameterTypeNotes
    stateIMState

    The app state

    ownPropsPartial<AllWidgetProps<any>>

    The widget props

    Returns 
    any

versionManager

optional
Interface Property
versionManager: BaseVersionManager

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.