Doc fix: editorController -> editor (#15625)

There is no `editorController` param in createBaseVisualization.
I think `editor` was meant instead.
This commit is contained in:
Yuri Astrakhan 2017-12-19 21:15:50 -05:00 committed by GitHub
parent 1c0624d3bc
commit 23e1828363
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,7 +217,7 @@ These can be either an AngularJS template or React component.
title: 'My New Vis',
icon: 'my_icon',
description: 'Cool new chart',
editorController: 'default',
editor: 'default',
editorConfig: {
optionsTemplate: '<my-custom-options-directive></my-custom-options-directive>' // or
optionsTemplate: MyReactComponent // or if multiple tabs are required:
@ -264,7 +264,7 @@ const MyNewVisType = (Private) => {
title: 'My New Vis',
icon: 'my_icon',
description: 'Cool new chart',
editorController: MyEditorController,
editor: MyEditorController,
editorConfig: { my: 'custom config' }
});
}