Is Toolbar removeItems method deprecated?

Hello,

Is Toolbar removeItems method deprecated? If yes, what should I use to remove items from the toolbar instead of this function? Documentation doesn't anything about deprecation. However, in the source code of toolbar element there is a @deprecated mark.

Thanks

7 Replies 1 reply marked as answer

BS Balasubramanian Sattanathan Syncfusion Team June 25, 2020 07:45 PM UTC

Hi Ssvinciak, 

Greetings from Syncfusion Support. 
 
We have validated your reported problem “Is Toolbar removeItems method deprecated?” at our side and prepared sample based on that using the below code snippet. We let you know that the removeItems method is not deprecated and we suggest you to refer the below sample and API.  
 
remove(): void { 
  this.toolbarObj.removeItems(0); 
} 
 
 
Kindly try the above solution and let us know if this is helpful. 
 
Regards, 
Balasubramanian S 


Marked as answer

SB sbartos July 8, 2020 08:29 PM UTC

Hello,

sorry for delayed answer, but I was waiting if you confirm the deprecation. The solution works, but I would like to be sure that API won't change. 


VM Vengatesh Maniraj Syncfusion Team July 9, 2020 05:06 AM UTC

Hi Stefan, 
 
Thanks for the update. 
 
You can use the removeItems API and we are sure that this API won’t change. 
 
Regards, 
Vengatesh  
 



SB sbartos July 9, 2020 07:31 AM UTC

Hi,

I understand. Are you going to remove @deprecated mark?


VM Vengatesh Maniraj Syncfusion Team July 10, 2020 05:25 AM UTC

Hi Stefan, 

Thanks for the update. 

We have removed the @deprecated mark in our latest package. So we suggest you please upgrade the package version to the latest one(18.2.44) to get the changes. 

Regards, 
Vengatesh  



SB sbartos July 11, 2020 04:24 PM UTC

Hi,

thanks. Really appreciate it.


VM Vengatesh Maniraj Syncfusion Team July 13, 2020 08:11 AM UTC

Hi Stefan, 

You are most welcome. 

Please get in touch with us if you need any further assistance. 

Regards, 
Vengatesh  


Loader.
Up arrow icon