ToolBarItems in SFNavigationDrawer

Hi,


I'm using SfNavigationDrawer as main Navigation (see https://www.syncfusion.com/forums/186017/switch-between-several-independent-pages)

In this example there's an image on the right side of the header. This could be utilized as ToolBarItem like available in Shell. 

Would it be possible to change those items when the contentpage is changed?


Best regards,

Toby



3 Replies 1 reply marked as answer

BV Brundha Velusamy Syncfusion Team January 10, 2024 12:05 PM UTC

Hi Tobias,

 

Thank you for reaching out to Syncfusion support.

 

We couldn't fully comprehend your exact requirements. To better assist you with your inquiry regarding the SfNavigationDrawer, we would like to seek additional clarification. We have retrieved the sample from the forum link you provided, and we observed an image on the right side of the header.

 

To provide you with a more accurate and timely solution, could you please provide more detailed information about your scenario? Specifically, we would like to understand whether you intend to change the right side image when the content page is changed or if you are looking to utilize the ToolBarItem functionality. Please provide this information so that we can offer a timely and precise solution.

 

Regards,

Brundha V



TH Tobias Horn January 11, 2024 09:34 AM UTC

Hi Brundha, 


sorry for being not specific enough. 

Indeed I want to utilize the right side of the Header as toolbar, with different toolbaritems on each Page. 

so eg in mainpage i have a logout Button instead of the picture, but on Page 2 i have a sync and add button instead of the picture. 


you mentioned toolbaritem functionality: if you could implement the toolbaritem as it is used in shell, that would be even better for me. 


Thanks in advance for the help, 

Toby



BV Brundha Velusamy Syncfusion Team January 12, 2024 02:02 PM UTC

Hi Tobias,

 

Thanks for providing the details.

 

We have created an sample to fulfil your specifications. This sample incorporates the feature where the right-side header image changes based on the navigation item. The image on the right also serves as a toolbar item for the application, utilizing the SfPopup control. We have attached the sample for your convenience. Please take a look, and feel free to contact us if you have any additional questions or require further assistance.

 

Regards,

Brundha V


Attachment: SfNavigationDrawer_50b2a1d6.zip

Marked as answer
Loader.
Up arrow icon