D_Inventor
06/09/2024, 10:59 AMUmbExtensionsApiInitializer
, but I don't know how to convert a list of api manifests into a list of object instances. Any idea if I'm going the right direction at all or if I'm completely off?D_Inventor
06/09/2024, 4:29 PMtypescript
new UmbExtensionsManifestInitializer(this, umbExtensionsRegistry, 'searchProvider', null, async (providers) => {
const searchProviders: Array<SearchProvider> = [];
for (const provider of providers) {
const api = await createExtensionApi<UmbSearchProvider<UmbSearchResultItemModel>>(this, provider.manifest);
if (api) {
searchProviders.push({
name: provider.manifest.meta?.label || provider.manifest.name,
api,
alias: provider.alias,
});
}
}
this._searchProviders = searchProviders;
if (this._searchProviders.length > 0) {
this._currentProvider = this._searchProviders[0];
}
});
provider
here happens to have an api
property and I think maybe that's the object instance I'm looking fornathanwoulfe
06/09/2024, 6:06 PM