Doc fix: editorController -> editor (#15704)

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:17 -05:00 committed by GitHub
parent 7161d897e0
commit b180e59c68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -219,7 +219,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:
@ -265,7 +265,7 @@ const MyNewVisType = (Private) => {
title: 'My New Vis',
icon: 'my_icon',
description: 'Cool new chart',
editorController: MyEditorController,
editor: MyEditorController,
editorConfig: { my: 'custom config' }
});
}