InteractiveWidgetInterface | Data Inspector Library API Reference
- Last UpdatedJun 16, 2025
- 1 minute read
Type parameters
-
PropsType
-
StateType
Hierarchy
-
InteractiveWidgetLifecycle<PropsType, StateType>
- InteractiveWidgetInterface
Implemented by
Index
Properties
Methods
Properties
Readonly element
The HTML element rendered by a widget.
Readonly state
An object that contains the current state of a widget.
Methods
Optional componentDidMount
-
Called after a component is mounted. Must only be called once.
Returns void
Optional componentWillMount
-
Called when a component is mounted. Must only be called once.
Returns void
Optional componentWillUnmount
-
Called before a component is unmounted. Must only be called once.
Returns void
Optional parentUpdate
-
Called when a parent is updated.
Returns void
Optional unmountComponent
-
Called when a component is unmounted. Must only be called once.
Returns void
An interactive widget with a state and props (React-style).