How to customize "No children match filter" message in OrganisationUnitTree?

Subject: How to customize ‘No children match filter’ message in OrganisationUnitTree?

Hello DHIS2 community,

I’m working on a custom app using React and TypeScript for DHIS2 version 2.41.2, and want to customize the “No children match filter” message in the OrganisationUnitTree component that appears when no children matches the filter. See the picture below.

Any kind of help appreciated! Thanks in advance

1 Like

Hi @Shukurjon_Ismoilov

Welcome to the community! It should be possible. Have you tried any code yet? What challenge are you facing in the current code?

Thanks!

Hello @Gassim

Thanks for welcoming!

We did it by adding condition to the css-styling of div element where children are rendered.

1 Like

Great to know you’ve fixed it. :slight_smile: