0.0.33 • Published 6 months ago
@types/trunk8 v0.0.33
Installation
npm install --save @types/trunk8
Summary
This package contains type definitions for trunk8 (https://github.com/rviscomi/trunk8).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/trunk8.
index.d.ts
// Type definitions for trunk8
// Project: https://github.com/rviscomi/trunk8
// Definitions by: Blake Niemyjski <https://github.com/niemyjski>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="jquery"/>
interface Trunk8Options {
/**
(Default: '…') The string to insert in place of the omitted text. This value may include HTML.
@param {string} fill
*/
fill?: string | undefined;
/**
(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 {number} lines
*/
lines?: number | undefined;
/**
(Default: 'right') The side of the text from which to truncate. Valid values include 'center', 'left', and 'right'.
@param {string} side
*/
side?: string | undefined;
/**
(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 {bool} tooltip
*/
tooltip?: boolean | undefined;
/**
(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 {string} width
*/
width?: string | undefined;
}
interface JQuery {
/**
Creates a trunk8 instance and calls a method.
@constructor
@param {string} method
@param {string} value
*/
trunk8(method: string, value?: string): any;
/**
Creates a trunk8 instance with default options.
@constructor
@param {Trunk8Options} options
*/
trunk8(options?: Trunk8Options): any;
}
Additional Details
- Last updated: Fri, 02 Jul 2021 19:37:18 GMT
- Dependencies: @types/jquery
- Global values: none
Credits
These definitions were written by Blake Niemyjski.
0.0.32
7 months ago
0.0.33
6 months ago
0.0.31
1 year ago
0.0.30
3 years ago
0.0.29
7 years ago
0.0.28
7 years ago
0.0.27
8 years ago
0.0.26
8 years ago
0.0.25-alpha
8 years ago
0.0.24-alpha
8 years ago
0.0.23-alpha
8 years ago
0.0.22-alpha
8 years ago
0.0.21-alpha
8 years ago
0.0.20-alpha
8 years ago
0.0.19-alpha
8 years ago
0.0.14-alpha
8 years ago
0.0.13-alpha
8 years ago