A new Blazor feature for ASP.NET Core 6 is custom events. With them, we can add custom logic to browser events. In this post we are going to implement a “multimedia paste”. What we will do is allow users to paste both text and images into a textarea. For that we will use a custom event. For this example I will use ASP.NET Core 6 and a Blazor WASM app. We need to configure the new event in two places, in JavaScript and in Blazor. Let’s start with JavaScript. JavaScript In JavaScript we ind...

Tagi: dotnet6
Źródło: gavilan.blog
Dziel się z innymi:
Blazor .NET 6 – Custom Events – Pasting Images Like on Twitter – ASP.NET Core 6

Inne 1259 dni, 13 godzin, 14 minut temu matwiatrzyk 31 pokaż kod licznika zwiń

Wczytywanie artykułów...