Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

What's the correct way to extend a .Net Blazor component and use it in all places?

$
0
0

I'm using MudBlazor library, and I have this requirement of creating my own <MudSelect> component for one of my commonly used business model. I have a couple of requirements here:

  1. I can simply write code like <MySelect /> to display all pre-defined <MudSelectItem> and the select action should work for two-way binding;
  2. I can set some common properties inside MySelect component to make a default appearance;
  3. I can also override those normal <MudSelect> properties with code like <MySelect Dense="true" />.

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>