Installation
1) Download the binaries, or one of the demos: BlazorAwesome Demo, BlazorWasmAwe Demo. 2) Unzip, and copy from the folder the files into the following folders in your solution:libs folder: Omu.BlazorAwesome.dll/xml3) Add reference to
wwwroot/js/BlazorAwe.js
wwwroot/css/awetheme folder
Omu.BlazorAwesome.dll(right click project -> Add Project Reference -> Browse -> find
Omu.BlazorAwesome.dll-> Ok). 4) Add these using statements to
_Imports.razor:
@using Omu.BlazorAwesome.Core5) Open
@using Omu.BlazorAwesome.Components
@using Omu.BlazorAwesome.Models
@using Omu.BlazorAwesome.Models.Utils
Pages/_Host.cshtml, or
wwwroot/index.htmlfor WASM, and add references to
BlazorAwesome.js,
jquery.js, and css files ( keep the same order ).
...
<link id="theme" href="css/awetheme/gui3/BlazorAwe.css" rel="stylesheet" />
...
</head>
<body>
...
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script src="js/BlazorAwe.js"></script>
...
</body>
Optional
1) For EntityFramework (Blazor Server, with Microsoft.EntityFrameworkCore.SqlServer package added), copy from the Blazor Awesome DemoEFAwesomeExtensions, and add its namespace (in our demo it's
WebUi.Utils) to
_Imports.razor.
@using WebUi.UtilsNow you'll be able to use the
EFDataextension method in your code. 2) Try an awesome component. In
Index.razoradd this code:
<OButton>hi</OButton>Hit
Ctrl+F5to run the app.
Comments