mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 03:01:21 -04:00
parent
cab65d369f
commit
34028fd0d2
26 changed files with 234 additions and 303 deletions
|
@ -53,20 +53,17 @@ export class EmbeddableExamplesPlugin
|
|||
new MultiTaskTodoEmbeddableFactory()
|
||||
);
|
||||
|
||||
// These are registered in the start method because `getEmbeddableFactory `
|
||||
// is only available in start. We could reconsider this I think and make it
|
||||
// available in both.
|
||||
deps.embeddable.registerEmbeddableFactory(
|
||||
SEARCHABLE_LIST_CONTAINER,
|
||||
new SearchableListContainerFactory(async () => ({
|
||||
getEmbeddableFactory: (await core.getStartServices())[1].embeddable.getEmbeddableFactory,
|
||||
embeddableServices: (await core.getStartServices())[1].embeddable,
|
||||
}))
|
||||
);
|
||||
|
||||
deps.embeddable.registerEmbeddableFactory(
|
||||
LIST_CONTAINER,
|
||||
new ListContainerFactory(async () => ({
|
||||
getEmbeddableFactory: (await core.getStartServices())[1].embeddable.getEmbeddableFactory,
|
||||
embeddableServices: (await core.getStartServices())[1].embeddable,
|
||||
}))
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue