engstromjimmy / blazm.components Goto Github PK
View Code? Open in Web Editor NEWA few useful and awesome components for Blazor. Blazor + awesome (azm)=Blazm (Blossom)
License: MIT License
A few useful and awesome components for Blazor. Blazor + awesome (azm)=Blazm (Blossom)
License: MIT License
If you first fill the grid with data and then clear the data, data still is shown in the grid.
Hello,
I am working on trying to get a wearable barcode scanner to interact with a blazor application.
The barcode scanner supports BLE, however it requires 'bonding' before if would lead you read certain characteristics.
So even though Bluetooth web things I connected to the device, the device actually doesn't let me read/recieve notification for the key Characteristics.
Any idea how this could be sorted and if there is any way to control the bonding behavior
(NB: I plan to get this to work only for Windows and Android devices).
I have not been able to figure out how to do this bonding before tr
Hi Jimmy,
First of all thankyou for an excellent library.
I have been trying to connect a BLE barcode scanner with a Blazor Server app, To succesfully connect to the scanner, it requires you to completely unpair and then connect again, I couldnt understand how to unpair/forget a device?
Nouman
A function on the grid to remove all filters.
While deploying my application onto a Linux platform and stumbled upon a couple of errors caused by Blazm: should be an easy fix.
GET [domain]/_content/Blazm.Components/css/styles.min.css net::ERR_ABORTED 404 (Not Found)
Renamed Blazm.Components/css/Styles.min.css to Blazm.Components/css/styles.min.css to resolve this issue.
GET [domain]/_content/Blazm.Components/scripts/ResizeTable.js net::ERR_ABORTED 404 (Not Found)
_Renamed /_content/Blazm.Components/Scripts to ]/content/Blazm.Components/scripts to resolve this issue.
Please add a LICENSE file (e.g. MIT) to allow using it. Without it you're not really granting others permission to use it.
Awesome project, and book (Web Development with Blazor), BTW!
var d = Convert.ToDouble(value); throws FormatExcpetion if value is blank.
hi, jimmy.
Are there any plans to officially support types like "Dictionary<string, object>" ?
I implemented it as below as needed.
//GridDataRow.razor
// ...
if (Row.GetType() == typeof(Dictionary<string, object>))
{
var KeyValue = Row as Dictionary<string, object>;
<td class="@column.Class @ContainerGrid.GetSignClass(column, KeyValue[column.Field].ToString()) @column.DataClass">@KeyValue[column.Field]</td>
}
// ...
I hope you can officially support.
thx.
I'm sorry.
I found a way to use it "dynamic".
solved it.
I'm having an issue when using dotnet publish for the project that references Blazm.Components. It seems to fail because of the filename case sensitivity on linux. Publish is looking for the Styles.css and Styles.min.css (with uppercase first letter), and they are in the filesystem with all lowercase names.
=> ERROR [build 8/8] RUN dotnet publish "DbServiceManager.csproj" -c Release -o /app/publish 75.5s
------
> [build 8/8] RUN dotnet publish "DbServiceManager.csproj" -c Release -o /app/publish:
#14 0.668 Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET
#14 0.668 Copyright (C) Microsoft Corporation. All rights reserved.
#14 0.668
#14 1.272 Determining projects to restore...
#14 1.685 All projects are up-to-date for restore.
#14 2.674 DbServiceManager -> /src/bin/Release/net6.0/DbServiceManager.dll
#14 2.678 DbServiceManager (Blazor output) -> /src/bin/Release/net6.0/wwwroot
#14 34.78 Optimizing assemblies for size, which may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
#14 34.86 Compressing Blazor WebAssembly publish artifacts. This may take a while...
#14 75.44 /usr/share/dotnet/sdk/6.0.101/Sdks/Microsoft.NET.Sdk.Razor/targets/Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(616,5): error MSB3030: Could not copy the file "/root/.nuget/packages/blazm.components/1.0.5/staticwebassets/css/Styles.css" because it was not found. [/src/DbServiceManager.csproj]
#14 75.44 /usr/share/dotnet/sdk/6.0.101/Sdks/Microsoft.NET.Sdk.Razor/targets/Microsoft.NET.Sdk.Razor.StaticWebAssets.targets(616,5): error MSB3030: Could not copy the file "/root/.nuget/packages/blazm.components/1.0.5/staticwebassets/css/Styles.min.css" because it was not found. [/src/DbServiceManager.csproj]
------
executor failed running [/bin/sh -c dotnet publish "DbServiceManager.csproj" -c Release -o /app/publish]: exit code: 1
After the implementation of faster itemsprovider grids using virtualization doesn't work as expected.
To be able to test changes and view them before making a PR.
To be able to make create/update/delete or link columns without specifiying field.
Create a new Blazor Server project and add the following code to any page:
<BlazmGrid Data="@Items">
<GridColumns>
<GridColumn Title="First">
<Template>
<span>1st static content</span>
</Template>
</GridColumn>
<GridColumn Title="Second">
<Template>
<span>2nd static content</span>
</Template>
</GridColumn>
<GridColumn Field="Key" />
<GridColumn Field="Value" />
</GridColumns>
</BlazmGrid>
@code {
public KeyValuePair<int, string>[] Items = new[]
{
new KeyValuePair<int, string>(1, "#1"),
new KeyValuePair<int, string>(2, "#2"),
new KeyValuePair<int, string>(3, "#3")
};
}
Running the above code will yield the following result:
I would expect to get the second static content string printed out in the column titled 'Second', and all the following columns aligned correctly to each title.
The problem seems to be the identification of the columns in BlazmGrid.razor.cs when there is no Field or Format specified:
When sorting the current culture is not used. Make sure that sorting handles characters that have a special sort order for the selected culture.
If we have a grid and remove all rows, the last row is still visible even when you remove all rows.
To be able to set a css class on an entire row. For example if an item has been cancelled and you want that to be clearly visible. Can be a strike-through or colored red etc.
If I am on the second page and then filter the view I won't get any results since they are on the first page.
Solution: When filtering turn of paging
I am using the grid to display a object (person) and the field of a column would be a list of addresses for example, how can I write each of these address for the person?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.