Trims the end of the given string with Ellipses.
Namespace:
C1.Web.iPhoneAssembly: C1.Web.iPhone.Client (in C1.Web.iPhone.Client.dll)
Syntax
JavaScript |
---|
C1.Web.iPhone.StringHelper.ellipseText = function(element, text, width, dotsOffset); |
Parameters
- element
- Type: DOMElement
The element.
- text
- Type: System..::..String
The text.
- width
- Type: System..::..Int32
The width in pixels.
- dotsOffset
- Type: System..::..Int32
Characters offset where we will place dots. E.g. result for string "1234567890ABCDE" with offset 0: "1234567...", with offset 3: "1234...CDE"".