Interface
The static methods of a widget.
Properties
| Property | Type | Notes |
|---|---|---|
versionManager | BaseVersionManager | The version manager of a widget (optional) |
versionManager
versionManager: BaseVersionManagerThe version manager of a widget (optional)
Methods
| Method | Returns | Notes |
|---|---|---|
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
getFullConfig(config: any): anyA 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
| Parameter | Type | Notes |
|---|---|---|
config | any | The config saved in the app config |
Returns
anymapExtraStateProps
mapExtraStateProps(state: IMState, ownProps: Partial<AllWidgetProps<any>>): anyIf a widget needs more state, it can use this function to map the state to the props.
Parameters
| Parameter | Type | Notes |
|---|---|---|
state | IMState | The app state |
own | Partial<AllWidgetProps<any>> | The widget props |
Returns
any