Descriptions Component does not support dynamic Description collection
See original GitHub issueDescribe the bug
the dynamic collection does not work!
Steps to reproduce (please include code)
basic idea:
<Descriptions Title="User Info">
<DescriptionsItem Title="UserName">Zhou Maomao</DescriptionsItem>
<DescriptionsItem Title="Telephone">18100000000</DescriptionsItem>
<DescriptionsItem Title="Live">Hangzhou, Zhejiang</DescriptionsItem>
@if(showAdvance){
<DescriptionsItem Title="Remark">Empty</DescriptionsItem>
<DescriptionsItem Title="Address">
No. 18, Wantang Road, Xihu District, Hangzhou, Zhejiang, China
</DescriptionsItem>
}
</Descriptions>
<button @onclick="@(()=>showAdvance=!showAdvance)" >switch mode</button>
private bool showAdvance=false;
@code{
}
Exceptions (if any)
n.a
Further technical details
AntDesign v0.15.1
ref:
Issue Analytics
- State:
- Created 3 months ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Add Dynamic Descriptions to Customize the Editor | Blog
You can configure descriptions on fields, collections and globals. All the description properties support three types: String; Function ...
Read more >Adding Dynamic Descriptions Based on Selection
Adding Dynamic Descriptions Based on Selection ... Make sure that the "Target Filters" option is set to All Fields. Click OK. Click OK....
Read more >Structure and style Collection pages
However, unlike static pages settings, Collection page settings can have dynamic values, meaning they result in unique information for each Collection item page ......
Read more >Component Models
All models should provide both static and dynamic descriptions. A model should not be considered complete without both descriptions. The dynamic description of ......
Read more >Developing Applications with Oracle Visual Builder in ...
Visual Builder gives you access to a rich set of UI components to build your page, from static ones like heading and avatar...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
unless blazor provides something like OnBeforeRender/override StateChanged, there is no perfect solution, as the item init/dispose happens too later, which will cause Descriptions to use old items data.
on another side, the preparematrix is really just something about render internal, not related to the logical part, call before StateChanged internal is perfect
ref:
you are right, it does not work! error as before!