autoElipseText

  

Open Client Administration  

autoElipseText

 

 

Purpose

Check the text supplied fits in the width supplied in the element supplied. If it does not, then replace the end of the string with ellipses so that it does fit.

Syntax

 

Operation

node is the element that holds the text.

text is the text to be checked.

width is the width in pixels.

Remarks

Return value:

The text (truncated with ellipses if required) that fits in the width supplied.

Example

proiv.autoElipseText(myNode, "abcdefghijklmnopqrstuvwxyz", 25);

 


 

Comment on this topic

Topic ID: 800051