selectionBar and organisationUnit Tree

I need help on how one can use the dhis2 ui selectionBar and organisationUnitTree because i can’t seem to find comprehensive documentation on how one can use the two

Hi @Yambanso_Kausiwa, thanks for your question!

Not sure which component you mean with selectionBar but we’ve got documentation for the organisationUnitTree here: https://ui.dhis2.nu/components/org-unit-tree

If you click the storybook link inside that doc, you’ll find a dozen or so examples for different configurations.

Other components are both on the doc site as well as storybook. Let me know where you need clarification!

i followed the implementation in story block but when i try to populate the org unit tree with org units i am getting a displayName required error

i mean the selectorBar not selectionBar

Can you show the code you have? Maybe I can point to the error more easily that way.

You can also find all the code from all the stories from storybook on our UI repository here: https://github.com/dhis2/ui/tree/master/components/organisation-unit-tree/src/__stories__ in case that helps with debugging.

Same with selector-bar here: https://github.com/dhis2/ui/tree/master/components/selector-bar/src/selector-bar/__stories__

1 Like

thank you that helped

2 Likes

Awesome! I would love to hear what you feel was missing from the documentation so we can improve it!

1 Like

i think inclusion of detailed examples might help a lot like they do with tailwinds documentation

2 Likes

Thanks! I’ll make sure to put that on the todo!

1 Like