samprof / matblazor Goto Github PK
View Code? Open in Web Editor NEWMaterial Design components for Blazor and Razor Components
Home Page: http://www.matblazor.com
License: MIT License
Material Design components for Blazor and Razor Components
Home Page: http://www.matblazor.com
License: MIT License
Steps to reproduce:
Go to demo http://matblazor.com
In the first autocomplete select one
Try to remove one character
Cause:
AllowFreeText is by default false which cause to consider on
a free text and autoselect the first value in the list(one
) so you cannot delete.
Fixed:
That I remove AllowFreeText functionality and use true as default. If someone doesn't want to allow free text, they'll use a select instead of an autocomplete.
Tested:
That MatAutocomplete works as expected.
I'll also add some documentation for MatAutocomplete.
I am very excited of what @sandrohanea make.
So, I think in very nearest feature we will have AutoComplete component.
Thank you!
Please add Tooltip support
Howdy! Wanted to post an issue before I just did it, but I was thinking about going through and doing the follow (and possibly more) for demo:
iframe
for the Navigation demo component look cleaner.If you'd take a PR, I'd be happy to do the above :)
@sandrohanea , width of textbox and popup should be the same
The MatTable component has an @Inject statement requiring an HttpClient to be registered in the DI container. In my instance, I am querying a DB context directly for items and so I don't need an HttpClient to retrieve any data. Also, for anyone loading static data they would also not need an HttpClient.
I see other Material Repos with an Expansion Panel. I started building one and was curious if I did one is that something you would want in MatBlazor? I can build in my repo and have you review it before submitting a PR.
Looking at the angular or the React as examples:
https://material-ui.com/demos/expansion-panels/
https://material.angular.io/components/expansion/overview#action-bar
A couple of questions if you want. Where is the best place to put custom css or javascript? I have not come across any place yet in your repo.
This piece of css is causing the placeholder to be too close to the input text. Is this desired? I can do my own css to change it but to me it seems like it is something that is not needed. If I remove it then it looks more correct:
.mdc-text-field--fullwidth:not(.mdc-text-field--textarea) .mdc-text-field__input{padding: 0 }
Before / After:
I can submit a PR if you like. Thanks
Error: System.InvalidOperationException: Object of type 'MatBlazor.Components.MatCheckbox.MatCheckbox' does not have a property matching the name 'ChildContent'
Error when using checkbox in a page when the page inherits a class with the ComponentBase class. It looks like this parameter is missing. I am submitting a PR for it now. I am not 100% if other components need this as well.
Also I am getting the error in my app and was able to recreate it in the MatBlazor.Demo.App.
From the sample:
<MatTextField bind-Value="@MyString4" Label="Standard" Outlined="true"></MatTextField>
Label is set to "Standard" but this does nothing, it is always "Your Name"
It's not very clear what UI library this project depends on and what version it's using.
There are no comments or licenses (must be retained in some cases) in the JS/CSS files
It appears that its using the following https://github.com/material-components/material-components-web
This libraries license states: "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software."
* @license
* Copyright 2016 Google Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
I want to elevate the app bar to make a cooler design.
Can you help me to do this?
Thanks
Hi,
I just started to use your project and i love it! Very clean and easy to use. I discovered that the version 0.4.5 doesn't have many of the controls you've already implemented. I would like to stick with .NET Core 2.x. Would you be so kind and generate a nuget package with latest state before you upgraded to .NET Core 3.x? Thank you.
If somebody have idea or opportunity or Inspiration to make logo or icons for our project, it would be good.
Is it possible to customise background and foreground colours of MatIconButton? I tried to use Class and Style, but they were ignored.
It would be nice to be able to align the icon for a MatButton the same way we can do it with the MatChip using LeadingIcon or TrailingIcon
thanks for the components - I really enjoy experimenting with them.
I was wondering if there is a way to set custom values for CSS properties like --mdc-theme-primary
?
It would be nice to control the overall look of the components by setting a global property.
It seems the library breaks if I try to use it in razor components? can anyone help?
Hello MatBlazor developers!
Blazor and MatBlazor are both great ideas. I'm experimenting with them at the moment in a Blazor
app using v 0.9.0 Preview 3 of Blazor.
Since I installed the MatBlazor library (latest stable v 0.4.5 from Nuget) it has introduced a compilation error into my project. The error is below:
Error CS0433 The type 'IWebAssemblyHostBuilder' exists in both 'Microsoft.AspNetCore.Blazor.Browser, Version=0.7.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' and 'Microsoft.AspNetCore.Blazor, Version=0.9.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' BlazorClient C:\Users\USER\BlazorClient\Program.cs 12
And here is line 12-16 of Program.cs (which I have not changed - it's just from the template)
public static IWebAssemblyHostBuilder CreateHostBuilder(string[] args)
{
return BlazorWebAssemblyHost.CreateDefaultBuilder()
.UseBlazorStartup<Startup>();
}
Fully qualifying the names of these two classes (IWebAssemblyHostBuilder and BlazorWebAssemblyHost) did not help. I guess because they're exactly the same classes in the same namespaces but have moved from one DLL to another.
Can anybody assist with this error please?
Many thanks in advance!
Benjamin
Hello there,
Thanks for all great razor components.
I'm using the MatSlider component, but the ValueChanged event does not fire, and examples in the doc don't show anything about it. Please, could anybody help me on this? Also, the Step property does not make any change on the slider.
Thanks in advance.
Hi @enkodellc I saw your reply. I have been very busy with not too much time. I will share my BlazorGridView component code. Its still lack of missing some features like clicking on header and sort the table but the paging is fully functional server/client side. Let me know if you need some help to get in it to work. I left the code in txt file cause the gridview is pretty long and the BlazorMessageAlert is being used internally. You can remove the blazor message alert component it is in really needed at all, I did't for personal purpose and for the gridview to be self managed by itself. I have other components handcfrated like autocomplete, input, checkbox, listview if you are interest to see them let me know to prepare another project with all the samples running so you can adapt it to you framework more easily. Cheers!
PS: I saw you already have most of them. haha
BlazorMessageAlert.txt
BlazorGridView.txt
I am building the MatTable component. Attempting to keep it simple to start and most likely will get a lot of requests for functionality and that control. Needs to start somewhere though.
Will have a PR for it soon. Needed the MatIconButton Changes for the Pagination control.
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.