Skip to content

Interface

The static methods of a widget.

Properties

PropertyTypeNotes
versionManagerBaseVersionManager

The version manager of a widget (optional)

versionManager

optional
Interface Property
versionManager: BaseVersionManager

The version manager of a widget (optional)

Methods

MethodReturnsNotes
getFullConfig(config)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(state, ownProps)any

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

getFullConfig

optional
Interface Method
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.

Parameters
ParameterTypeNotes
configany

The config saved in the app config

Returns 
any

mapExtraStateProps

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

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

Parameters
ParameterTypeNotes
stateIMState

The app state

ownPropsPartial<AllWidgetProps<any>>

The widget props

Returns 
any

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