SamProf / MatBlazor

Material Design components for Blazor and Razor Components
http://www.matblazor.com
MIT License
2.84k stars 386 forks source link

MatSortHeader: How to Disable MatSortDirection.None #897

Open fata13xception opened 3 years ago

fata13xception commented 3 years ago

From what I've been able to understand, the Angular MatSortHeader implements a disableClear attribute for disabling the MatSortDirection.None state in sorted columns; i.e., when disableClear = true, then clicking a sort-enabled column will only alternate between MatSortDirection.Asc and MatSortDirection.Desc. https://beta-angular-material-io.firebaseapp.com/components/sort/api

I cannot, however, find this same attribute for the MatBlazor MatSortHeader.

How can I implement this behavior?