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

Split Blazor RenderFragment into a list of RenderFragments

$
0
0

Is it possible to split a RenderFragment into a list of RenderFragments seperated by the parent nodes?

Lets say I have a RenderFragement (without parameters) like this:<label><InputText /></label> <button /> <label><InputNumber /></label>

and the list should look like this:at index 0 <label><InputText /></label> at index 1 <button /> at index 2 <label><InputNumber /></label>

I tried parsing the RenderFragment into strings or MarkupStrings so that I can split that, but that did not work unfortunately.

I want to implement a carousel component in blazor. Where the Parameter should just be a RenderFragment ChildComponent and the carousel component should split the ChildComponent at the parent nodes, so that each parent node is one slide of the carousel


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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