blazor-components | Components collection and extensions for Blazor applications | Binary Executable Format library
kandi X-RAY | blazor-components Summary
kandi X-RAY | blazor-components Summary
.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of blazor-components
blazor-components Key Features
blazor-components Examples and Code Snippets
Community Discussions
Trending Discussions on blazor-components
QUESTION
I have a razor class library and blazor server that consumes this library, each component in RCL has own css, after reading documentation of microsoft ASP.NET Core Blazor CSS isolation I did the following:
- In my razor page of blazor server I added my component:
- In _Host page I added link for bundeling:
.
After running the application I couldn't see the css of MyComponent.
Did I make something wrong? Can you give me some advice?. I read this page that follows the same approach but for Webassembly!.
Thanks.
...ANSWER
Answered 2021-Jan-27 at 08:55Quoting Razor class library (RCL) support docs:
When a Razor class library (RCL) provides isolated styles, the tag's href attribute points to {STATIC WEB ASSET BASE PATH}/{ASSEMBLY NAME}.bundle.scp.css, where the placeholders are:
- {STATIC WEB ASSET BASE PATH}: The static web asset base path.
- {ASSEMBLY NAME}: The class library's assembly name.
In the following example:
- The static web asset base path is _content/ClassLib.
- The class library's assembly name is ClassLib.
In _Host page you should to add something like:
QUESTION
So basically I want to create charts with server-side blazor, I was searching around for some packages which would allow me to create charts. The problem being that they are all pretty expensive:
The only free alternative which is also pretty good I found was ofc. ChartJs, but it uses obviusly js which is not really the direction I wanted to go for.
So are there any 'good' Blazor chart libraries which are free and let me create the normal hand full of chart types e.g. area-charts, line charts, bar charts ... ?
...ANSWER
Answered 2019-Jun-08 at 08:45To answer the question myself, this is the library which looks the most promising and it is also free.
QUESTION
Using .NET Core with the latest release version of server side Blazor, I implemented Blazor components in an existing MVC application (thanks to Chris https://chrissainty.com/using-blazor-components-in-an-existing-mvc-application/) I can only render the Blazor component on the default page (i.e. https://localhost:5433). The Blazor components works totally fine in the default page but when I try to open the view using https://localhost:5433/home/index or any other view, the Blazor component does not get rendered.
Am I missing something here?
...ANSWER
Answered 2019-Dec-11 at 17:23I figured it out! To answer some of the questions and a reproducible example:
Create an empty MVC Core Application and follow Chrissianity's tutorial on how to implement Blazor to an existing MVC https://chrissainty.com/using-blazor-components-in-an-existing-mvc-application/
I didn't notice that I was using
QUESTION
I'm trying to use Blazor in a .net core 3 MVC project. I used a few tutorials to do this, like https://fizzylogic.nl/2019/08/18/integrating-blazor-in-an-existing-asp-net-core-application/ and https://chrissainty.com/using-blazor-components-in-an-existing-mvc-application/ .
What is working: The initialization of the Blazor component is working. The OnInitializedAsync() function gets triggered and the component gets rendered fine.
This is the call from the MVC View:
...ANSWER
Answered 2019-Dec-02 at 11:08From the docs: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/blazor/index?view=aspnetcore-3.0&tabs=visual-studio#app-base-path
App base pathThe app base path is the app's root URL path. Consider the following ASP.NET Core app and Blazor sub-app:
- The ASP.NET Core app is named
MyApp
:- The app physically resides at d:/MyApp.
- Requests are received at
https://www.contoso.com/{MYAPP RESOURCE}
.
- A Blazor app named
CoolApp
is a sub-app ofMyApp
:- The sub-app physically resides at d:/MyApp/CoolApp.
- Requests are received at
https://www.contoso.com/CoolApp/{COOLAPP RESOURCE}
.
Without specifying additional configuration for CoolApp
, the sub-app in this scenario has no knowledge of where it resides on the server. For example, the app can't construct correct relative URLs to its resources without knowing that it resides at the relative URL path /CoolApp/
.
To provide configuration for the Blazor app's base path of https://www.contoso.com/CoolApp/
, the tag's
href
attribute is set to the relative root path in the Pages/_Host.cshtml file (Blazor Server) or wwwroot/index.html file (Blazor WebAssembly):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install blazor-components
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page