We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Text overflow in symbolpalette

Hello,
can you please help me with text overflow in symbol pallete, is there any setting to handle longer text?

Screen in attachment.

Thank you

Attachment: text_35b13c7e.zip

3 Replies

SG Shyam G Syncfusion Team January 31, 2020 04:26 PM UTC

Hi Gabo, 

We should set wrap property as NoWrap and the overflow as clip or ellipsis which cuts the overflow text in the symbol palette. Please refer to a code example and the sample below. 

Code example: 
  public getSymbolInfo(symbol: NodeModel): SymbolInfo { 
    // display text for palette item 
    return { description: { text: symbol.annotations[0].content, overflow:'Ellipsis', wrap:'NoWrap' }, fit:true }; 
 



Regards, 
Shyam G 



GE Gabo EE February 3, 2020 12:17 PM UTC

Thank you for your answer. Your solution works fine.




SG Shyam G Syncfusion Team February 4, 2020 04:25 AM UTC

Hi Gabo, 
Thanks for your update. 
Regards, 
Shyam G 


Loader.
Live Chat Icon For mobile
Up arrow icon