Install MatBlazor library via nuget.
Install-Package MatBlazor
or
dotnet add package MatBlazor
Add @using MatBlazor in main _Imports.razor
MatBlazor components are self-supporting.
Add script section to index.html or _Host.cshtml (head section)
Add registration of service to Startup.cs
Add MatPortalHost component to root component (App.razor) for some services like MatDialogService, MatPortalService
MatBlazor does not run under the umbrella of any company or anything like that. It is an independent project created in spare time. The development is active and we are working hard to release great things for you.
If you think that this project helped you or your company in any way, you can consider becoming a backer/sponsor.
MatVirtualScroll
- complete new componentMatDataTable
- complete new componentMatDatePicker
- improvementsMatTreeView
- complete new componentMatAutocomplete
- new implementation of componentasync void
for UI events #808 (Thanks to Christian-Oleson)MatVirtualScroll
- New component-sbyte?
, byte?
, short?
, ushort?
, int?
, uint?
, long?
, ulong?
, char?
, float?
, double?
#449 (Thanks to fire-birdie)MatSelect
#454 (Thanks to hailstorm75)MatSortHeader
, MatSortHeaderRow
- New componentMatPaginator
- New componenthoistMenuToBody
for MatSelect and MatMenu - fix #415Breaking changes - Upgrade an existing project
<link href="_content/MatBlazor/dist/matBlazor.css" rel="stylesheet" />
to html code.NET Core 3.2 Preview 1
librariesPR: Update to .NET Core 3.2 Preview 1 #409 (Thanks to enkodellc)
PR: Separation of CSS and JS resources #408 (Thanks to RonPeters)
MatSelectItem<TValue>
ItemTemplate
TValue
parameter should be defined if he is not inferred.EditContext
MatSelectValue<TItem, TValue>
ItemTemplate
using ValueSelector
TValue
parameter should be defined if he is not inferred.EditContext
MatFileUpload
- progress bar added, improoved performance
MatFileUpload
- inital version of componentToggled
parameter and ToggledChanged
.MatSelect
was rewrited and prepared for MatSelectItem
and MatSelectValue
, supported only Enhanced
mode, Disabled for MatOption
is temporary not workingMatAutocomplete
renamed to MatAutocompleteList
ItemType
renamed to TItem
Collection
renamed to Items
MatAutocomplete
component will be in 2.1.0TValue
parameter should be defined if he is not inferred.bool
, bool?
EditContext
Checked
renamed to Value
CheckedChanged
renamed to ValueChanged
Attributes
is appended to main component HtmlElement (not InputElement). Use InputAttributes
instead.TValue
parameter should be defined if he is not inferred.DateTime
, DateTime?
EditContext
DateFormat
renamed to Format
, and this is full .NET formatting of DateTimeMinimum
, Maximum
paramneteres addedNoCalendar
renamed to DisableCalendar
AltFormat
, AltInputClass
, Inline
removedTValue
parameter should be defined if he is not inferred.sbyte
, byte
, short
, ushort
, int
, uint
, long
, ulong
, char
, float
, double
, decimal
, decimal?
EditContext
TValue
parameter should be defined if he is not inferred.EditContext
MatOption
component manuallyTValue
parameter should be defined if he is not inferred.EditContext
string
, sbyte
, byte
, short
, ushort
, int
, uint
, long
, ulong
, char
, float
, double
, decimal
, decimal?
, DateTime
, DateTime?
, bool
, bool?
MatSelectString
, MatOptionString
TValue
parameter should be defined if he is not inferred.sbyte
, byte
, short
, ushort
, int
, uint
, long
, ulong
, char
, float
, double
, decimal
, decimal?
EditContext
Step
parameterTValue
parameter should be defined if he is not inferred.bool
, bool?
EditContext
TValue
parameter should be defined if he is not inferred.string
, sbyte
, byte
, short
, ushort
, int
, uint
, long
, ulong
, char
, float
, double
, decimal
, decimal?
, DateTime
, DateTime?
, bool
, bool?
EditContext
MatStringField
- replacement old MatTextField
- just for string
values without generic TValue
parameter.MatBlazorInstall
- removed<table>
is off #195RenderStaticComponentAsync
, but did not.RenderComponentAsync
, also because in Preview 9 RenderStaticComponentAsync
will be removed (https://github.com/aspnet/AspNetCore/issues/12245).<MatBlazorInstall />
for server-side Blazor is obsolete