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

Text overflow in symbolpalette

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 11:26 AM

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 }; 

Shyam G 

GE Gabo EE February 3, 2020 07:17 AM

Thank you for your answer. Your solution works fine.

SG Shyam G Syncfusion Team February 3, 2020 11:25 PM

Hi Gabo, 
Thanks for your update. 
Shyam G 

Live Chat Icon For mobile
Up arrow icon