Skip to content

Commit 2366f3d

Browse files
authored
[Blazor] Image Component for Blazor (#63360)
* Adds a new Image component to display images from dynamic sources like API responses without using an additional HTTP endpoint. Fixes #25274
1 parent e4d1da0 commit 2366f3d

File tree

11 files changed

+1634
-3
lines changed

11 files changed

+1634
-3
lines changed

src/Components/Web.JS/src/GlobalExports.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { attachWebRendererInterop } from './Rendering/WebRendererInteropMethods'
1919
import { WebStartOptions } from './Platform/WebStartOptions';
2020
import { RuntimeAPI } from '@microsoft/dotnet-runtime';
2121
import { JSEventRegistry } from './Services/JSEventRegistry';
22+
import { BinaryImageComponent } from './Rendering/BinaryImageComponent';
2223

2324
// TODO: It's kind of hard to tell which .NET platform(s) some of these APIs are relevant to.
2425
// It's important to know this information when dealing with the possibility of mulitple .NET platforms being available.
@@ -50,6 +51,7 @@ export interface IBlazor {
5051
navigationManager: typeof navigationManagerInternalFunctions | any;
5152
domWrapper: typeof domFunctions;
5253
Virtualize: typeof Virtualize;
54+
BinaryImageComponent: typeof BinaryImageComponent;
5355
PageTitle: typeof PageTitle;
5456
forceCloseConnection?: () => Promise<void>;
5557
InputFile?: typeof InputFile;
@@ -111,6 +113,7 @@ export const Blazor: IBlazor = {
111113
NavigationLock,
112114
getJSDataStreamChunk: getNextChunk,
113115
attachWebRendererInterop,
116+
BinaryImageComponent,
114117
},
115118
};
116119

0 commit comments

Comments
 (0)