Doc fix: editorController -> editor (#15607)

There is no `editorController` param in createBaseVisualization.
I think `editor` was meant instead.
This commit is contained in:
Yuri Astrakhan 2017-12-19 21:04:35 -05:00 committed by GitHub
parent c55beed24f
commit 1d92807a18
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' }
});
}