Replies: 5 comments 5 replies
-
Hi, While I welcome discussion about this, it also feels a bit like finding a solution to a problem that does not really exists
What would then be stopping you from using
Yes, and that greatly improves discoverability for devs. If we would use separate namespaces,
That works as they have a (rather cool) And what happens if DevExpress decides to develop the next version of With doing this, we would stop having the
We can consider that for the next major version but it will also introduce another breaking change and code that needs to be changed/rewritten for people upgrading to that version. |
Beta Was this translation helpful? Give feedback.
-
When organizing your Blazor components, especially sub-components, it's crucial to strike a balance between reusability and specificity. It's not particularly useful to prefix subcomponents. The Once in a main component (like the DataGrid), it's easier to access sub-components directly, with clear, concise names and, if possible, no abbreviations. This is also the logic adopted by MudBlazor. <MudDataGrid Items="@employees" Filterable="false" SortMode="@SortMode.None" Groupable="false">
<Columns>
<PropertyColumn Property="x => x.Name" />
<PropertyColumn Property="x => x.Position" />
<PropertyColumn Property="x => x.YearsEmployed" Title="Years Employed" />
<PropertyColumn Property="x => x.Salary" Format="C" />
<PropertyColumn Property="x => x.Salary * x.YearsEmployed" Title="Total Earned" Format="C" />
<TemplateColumn CellClass="d-flex justify-end">
<CellTemplate>
<MudStack Row>
<MudRating Size="@Size.Small" SelectedValue="@context.Item.Rating" />
<MudButton Size="@Size.Small" Variant="@Variant.Filled" Color="@Color.Primary">Hire</MudButton>
</MudStack>
</CellTemplate>
</TemplateColumn>
</Columns>
</MudDataGrid> |
Beta Was this translation helpful? Give feedback.
-
I noticed that there are different ways to indicate the same thing. Ex. |
Beta Was this translation helpful? Give feedback.
-
Is there a shared todo list or roadmap? |
Beta Was this translation helpful? Give feedback.
-
No, nothing formal. Denis and I both have a sort of list in paper/head/... But we will work on making a more formal roadmap available here! (after the summer) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
i am developing a new component using the Fluent prefix. In the case of subcomponents how should i call them?
For example the
FluentDataGrid
has subcomponents called:PropertyColumn
,SelectColumn
,TemplateColumn
.If tomorrow i had to develop a new FluentDataGrid2 the column names are already taken.
The components are all at the same namespace level.
Wouldn't it be better to use the component prefix on the subcomponents?
I saw that Devexpres does this,
DxGrid
and the columnsDxGridSelectionColumn
,DxGridDataColumn
.Could we think of creating new ones with prefix and making the old ones obsolete?
best regards
Beta Was this translation helpful? Give feedback.
All reactions