I can’t stress this enough, only use IJSInProcessRuntime when using Blazor WebAssembly. This will not work if you’re using Blazor Server. How to call a JavaScript function from C# Now we have covered the tools available to us. Let’s look at an example of how we can use them to ...
A common feature for web apps is sortable lists.SortableJSis one of my favorite JavaScript libraries and I missed it when developing with Blazor. To remedy this, I decided to wrap SortableJS to make it a Blazor component, namedBazor Sortable, that I have made open source on GitHub that I...
You can easily implement aRich Text Editorin yourBlazorapplications using the free open source component calledQuill. Setup Create a newServerSideBlazorproject andright-clickon thewwwrootfolder and selectAddthenNew Item… CreateaJavaScriptfile calledBlazorQuill.js. For the file, use the following con...
Blazor is a .NET web framework to build client web apps with C#.Blazor lets you build interactive web UIs using C# instead of JavaScript. Blazor apps are composed of reusable web UI components implemented using C#, HTML, and CSS. Both client and server code is written in C#, allowing you...
Use JavaScript to open PDFs from a number of input sources, including remote URLs, blobs, array buffers, local storage, Base64 data, and more. Opened PDFs can be rendered in the viewer, annotated, and edited.Try for free Launch demo...
Copy To Clipboard Forum Add a button to copy text in the clipboard DataTable for Blazor Forum Demo DataTable component for Blazor WebAssembly and Blazor Server Google Tag Manager [Forum]() Demo Adds Google Tag Manager to the application and manages communication with GTM JavaScript (data layer)...
Implement Bubble Sort In JavaScript What Are Progressive Web Apps (PWA) And How To Implement PWA Using Angular Build Progressive Web Applications With Blazor WebAssembly Apple Starts Implementing Progressive Web App (PWA) Plumbing & Rejecting App Store SubmissionsAbout...
Mudblazor, as its tagline suggests, is a component library for Blazor to ease up the web development without struggling with CSS and Javascript. The biggest perk of this library is that it’s completely written on C#, with close to zero dependency on Javascript. The popularity of this library...
usingMicrosoft.AspNetCore.Components;usingMicrosoft.JSInterop;namespaceBlazorLocalStorage.Helpers{publicclassLocalStorageHelper:ILocalStorageHelper{privatereadonlyIJSRuntime_javaScript;publicLocalStorageHelper(IJSRuntimejavaScript){_javaScript=javaScript;}publicasyncTaskSetItem(stringkey,stringvalue){await_javaScript....
This is a pretty quick look at Blazor, but more importantly, how we can use Blazor in a scenario that might require us to do a bit more interop with JavaScript that many scenarios require. I hope you’ve enjoyed it and are ready to tackle your own Blazor experiments as well!