mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Fix react vis type documentation (#22573)
This commit is contained in:
parent
5f4a1c58e8
commit
9c01863c0a
1 changed files with 2 additions and 2 deletions
|
@ -179,7 +179,7 @@ VisTypesRegistryProvider.register(MyNewVisType);
|
|||
[[development-react-visualization-type]]
|
||||
==== React Visualization Type
|
||||
React visualization type assumes you are using React as your rendering technology.
|
||||
Just pass in a React component to `visConfig.template`.
|
||||
Just pass in a React component to `visConfig.component`.
|
||||
|
||||
The visualization will receive `vis`, `appState`, `updateStatus` and `visData` as props.
|
||||
It also has a `renderComplete` property, which needs to be called once the rendering has completed.
|
||||
|
@ -197,7 +197,7 @@ const MyNewVisType = (Private) => {
|
|||
icon: 'my_icon',
|
||||
description: 'Cool new chart',
|
||||
visConfig: {
|
||||
template: ReactComponent
|
||||
component: ReactComponent
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue