fix function editor in Grafana 6, #765

This commit is contained in:
Alexander Zobnin
2019-07-05 17:42:46 +03:00
parent 6b5b5f818b
commit 4346e13365
10 changed files with 667 additions and 251 deletions

View File

@@ -0,0 +1,10 @@
import coreModule from 'grafana/app/core/core_module';
export function react2AngularDirective(name: string, component: any, options: any) {
coreModule.directive(name, [
'reactDirective',
reactDirective => {
return reactDirective(component, options);
},
]);
}