Interface Trunk8Options

Index

Properties

Properties

optional public fill?: string

(Default: '…') The string to insert in place of the omitted text. This value may include HTML.

param

optional public lines?: number

(Default: 1) The number of lines of text-wrap to tolerate before truncating. This value must be an integer greater than or equal to 1.

param

optional public side?: string

(Default: 'right') The side of the text from which to truncate. Valid values include 'center', 'left', and 'right'.

param

optional public tooltip?: boolean

(Default: true) When true, the title attribute of the targeted HTML element will be set to the original, untruncated string. Valid values include true and false.

param

optional public width?: string

(Default: 'auto') The width, in characters, of the desired text. When set to 'auto', trunk8 will maximize the amount of text without spilling over.

param