Enumeration EllipsizeModeReadonly

UI.EllipsizeMode

Static

Since

4.0.2

EllipsizeMode is an enum. It defines how to text will be truncated.

Example

import Color from '@smartface/native/ui/color';
import TextView from '@smartface/native/ui/textview';
import EllipsizeMode from '@smartface/native/ui/ellipsizemode';

const myTextView = new TextView({
hint: "hint",
width: 100,
backgroundColor: Color.create("#7fd0ff"),
ellipsizeMode: EllipsizeMode.START
});

myPage.layout.addChild(myTextView);

Enumeration Members

START: "start"

End of text fits in the container and the missing text at the beginning of the line is indicated by an ellipsis glyph. Such as "...smrtfc"

Android

Ios

Static

Since

4.0.2

MIDDLE: "middle"

End & start of text fits in the container and the missing middle of the text is indicated by an ellipsis glyph. Such as "smrt...fc"

Android

Ios

Static

Since

4.0.2

END: "end"

Start of text fits in the container and the missing end of the text is indicated by an ellipsis glyph. Such as "smrtfc..."

Android

Ios

Static

Since

4.0.2

NONE: "none"

Turns off ellipsizing

Android

Ios

Static

Since

4.0.2

WORDWRAPPING: "ios_wordwrapping"

Wrapping occurs at word boundaries, unless the word itself doesn’t fit on a single line. This mode may not work correctly when the maxLines value is 1.

Ios

Static

Since

4.0.2

CHARWRAPPING: "ios_charwrapping"

Wrap at character boundaries. This mode may not work correctly when the maxLines value is 1.

Ios

Static

Since

4.0.2

Generated using TypeDoc