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 19 dni, 2 minuty temu matwiatrzyk 26 pokaż kod licznika zwiń

Wczytywanie artykułów...

Najaktywniejsi

1
(32 895,6)
2
(32 816,53)
3
(27 178,29)
4
(21 178,88)
5
(20 336,33)
6
(13 018,14)
7
(10 531,65)
8
(9 775,28)
9
(8 866,31)
10
(6 837,96)
11
(6 214,22)
12
(5 393,84)
13
(4 157,41)
14
(4 026,73)
15
(3 908,07)
16
(3 599,64)
17
(3 448,35)
18
(3 318,39)
19
(3 224,66)
20
(3 221,45)