slaveOftime / Fun.Blazor

Powered by .NET blazor!!! ❤ F#
https://slaveoftime.github.io/Fun.Blazor.Docs/
MIT License
189 stars 7 forks source link

Example for Bindings? #56

Closed EHotwagner closed 7 months ago

EHotwagner commented 7 months ago

Hi, is there an up to date example of how to use Bindings around? There seems to be some plumbing necessary to get it to work.

albertwoo commented 7 months ago

If you are pointing things to https://slaveoftime.github.io/Fun.Blazor.Docs/Docs/Bindings, then you just need to follow related third party package's document. For example, if you want to use MudBlazor:

All the bindings will append ' to the original component, for example: MudButton would be MudButton'.

You can also check the Fun.Blazor.Docs app as the example: https://github.com/slaveOftime/Fun.Blazor/blob/master/Fun.Blazor.Docs.Wasm/App.fs

EHotwagner commented 7 months ago

Ah, sure. It was my bad. I still had an older template where the folder structure was a little different.

albertwoo commented 7 months ago

@EHotwagner here is a sample repo: https://github.com/slaveOftime/Fun.Blazor.Samples/tree/main/samples/FunWasm.MudBlazorDemo