fgilde / MudBlazor.Extensions

MudBlazor.Extensions from https://www.mudex.org is a small extension for MudBlazor from https://mudblazor.com
http://www.mudex.org
MIT License
242 stars 20 forks source link

Add more descriptive code samples #64

Closed hjrb closed 11 months ago

hjrb commented 11 months ago

Feature request type

Other

Component name

No response

Is your feature request related to a problem?

Your code sample use the component properties grid which makes it very easy to try them. That is really great. But it is very hard to understand what to do it something does not work as expected and there is there code setting properties. After all I will not embed you components with the component grid but by setting properties in Razor/C# code.

Describe the solution you'd like

Your code sample use the component properties grid which makes it very easy to try them. That is really great. But it is hard to understand what to do if something does not work as expected and there is code setting properties. After all I will not embed your components with the component grid but by setting properties in Razor/C# code. A nice approach would be to generate sample code for the component using the input to the component properties editor. That would be a KILLER feature!

Note: the component grid should be built-in into Visual Studio. In the god old days that was a key selling point for VB, Delphi and VS.

Have you seen this feature anywhere else?

A nice approach would be to generate sample code for the component using the input to the component properties editor. That would be a KILLER feature! Else provide manually crafter code samples

Describe alternatives you've considered

A nice approach would be to generate sample code for the component using the input to the component properties editor. That would be a KILLER feature! Else provide manually crafter code samples

Pull Request

No response

Code of Conduct

fgilde commented 11 months ago

Not 100% sure if you need something different, but its already possible. Just change settings in der ComponentPropertyGrid and click the generate markup button and you will see the markup for your used settings.

pg1 pg2

Or click on the run in try.mudex button to edit the code for your current settings directly online

pg3

trymudex

fgilde commented 11 months ago

please let me know if you mean or want more than this

hjrb commented 11 months ago

please let me know if you mean or want more than this

That is sufficient i guess. I had the issue that the animation of the gradient text did not work. But I resolved it by using the explicit CSS loading instructions. Thanks for the great library!! And as I already wrote: that component configuration with the code generation (which I learned know) is genius! Make a PR to include it into VS or create a VS Code extension 💪😊😍