Код: Выделить всё
Review
@code {
[Parameter] public List Widgets { get; set;}
}
Однако теперь я хочу создать оболочку для всех моих MudDataGrid, обеспечивающую единообразный стиль и конфигурацию. Назовите его CustomDataGrid.
Код: Выделить всё
@typeparam T
@* Custom config stuff *@
@* Custom config stuff *@
@code {
[Parameter] public IEnumerable? Items { get; set; }
[Parameter] public RenderFragment Columns { get; set; }
// ...
}
Код: Выделить всё
Review
@code {
[Parameter] public List Widgets { get; set;}
}
Код: Выделить всё
Components_Pages_WidgetDisplay_razor.g.cs(743,98): Error CS0411 : The type arguments for method 'TypeInference.CreatePropertyColumn_4(RenderTreeBuilder, int, int, Expression, int, string, int, bool?)' cannot be inferred from the usage. Try specifying the type arguments explicitly.
Код: Выделить всё
Review
@code {
[Parameter] public List Widgets { get; set;}
}
Есть ли какой-нибудь способ настроить CustomDataGrid, чтобы он мог выводить переменные типа своих столбцов?
Подробнее здесь: https://stackoverflow.com/questions/798 ... -a-wrapper
Мобильная версия