MudBlazor/MudBlazor

Docs: Add TreeView example for nested structures with different object subtypes

Ouverte

#6 510 ouverte le 21 mars 2023

 (1 commentaire) (0 réaction) (0 personne assignée)C# (1 631 forks)batch import
docsgood first issue

Métriques du dépôt

Stars
 (10 394 étoiles)
Métriques de merge PR
 (Merge moyen 6j 6h) (108 PRs mergées en 30 j)

Description

Feature request type

Other

Component name

TreeView

Is your feature request related to a problem?

It was too difficult to represent a nested object structure in which nested type is different from parent type.

Such as

class Tree: public List= new();

Describe the solution you'd like

Here is what i did: https://try.mudblazor.com/snippet/mkcRkRclxLASvfXO

If its ok for you, you may add it to docs page of tree view as its unclear as of now on how to manage different sub-type objects.

Its based on: https://mudblazor.com/components/treeview#custom-checkbox-behavior with some mods in order to draw different type sub-nodes

Have you seen this feature anywhere else?

No response

Describe alternatives you've considered

No response

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

Guide contributeur