How we can add search mode (Simple Search, AML Search, Advanced Search) dropdown in Multi-level BOM


I am trying to add search mode in the Multi-level BOM relationship toolbar, but I am not very sure that how can I achieve this.

Also, I have one custom relationship where I am displaying data in TGV, in that custom toolbar also I want the same functionality i.e Search mode dropdown.

Can anyone please let me know that is there any way to achieve the same?