Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FrDH/dotdotdot-js
/ functions
Functions
21 in github.com/FrDH/dotdotdot-js
⨍
Functions
21
◇
Types & classes
5
↓ 5 callers
Method
_fits
* Test if the content fits in the container. * * @return {boolean} Whether or not the content fits in the container.
src/dotdotdot.ts:483
↓ 3 callers
Function
transpile
(target, module)
gulpfile.js:7
↓ 2 callers
Method
_addEllipsis
* Add the ellipsis to a text. * * @param {string} text The text to add the ellipsis to. * @return {string} The text with the adde
src/dotdotdot.ts:496
↓ 2 callers
Method
_getMaxHeight
* Find the max-height for the container. * * @return {number} The max-height for the container.
src/dotdotdot.ts:583
↓ 2 callers
Method
truncate
* Start the truncate process.
src/dotdotdot.ts:304
↓ 2 callers
Method
unwatch
* Stop the watch.
src/dotdotdot.ts:283
↓ 2 callers
Method
watch
* Start a watch for the truncate process.
src/dotdotdot.ts:212
↓ 1 callers
Method
_getOriginalContent
* Sanitize and collect the original contents. * * @return {array} The sanitizes HTML elements.
src/dotdotdot.ts:512
↓ 1 callers
Method
_truncateToLetter
* Truncate a word by removing letters from the end. * * @param {HTMLElement} element The element to truncate.
src/dotdotdot.ts:459
↓ 1 callers
Method
_truncateToNode
* Truncate an element by removing elements from the end. * * @param {HTMLElement} element The element to truncate.
src/dotdotdot.ts:338
↓ 1 callers
Method
_truncateToWord
* Truncate a sentence by removing words from the end. * * @param {HTMLElement} element The element to truncate.
src/dotdotdot.ts:434
↓ 1 callers
Method
destroy
* Fully destroy the plugin.
src/dotdotdot.ts:204
↓ 1 callers
Method
restore
* Restore the container to a pre-init state.
src/dotdotdot.ts:184
Method
constructor
* Truncate a multiline element with an ellipsis. * * @param {HTMLElement} container The element to truncate. * @param {object}
src/dotdotdot.ts:104
Function
js
(cb)
gulpfile.js:53
Function
jsES6
(cb)
gulpfile.js:39
Function
jsESM
(cb)
gulpfile.js:46
Function
jsUMD
(cb)
gulpfile.js:32
Function
types
(cb)
gulpfile.js:61
Function
watch
(cb)
gulpfile.js:72
Method
watchSizes
( element: Window | HTMLElement, width: string, height: string
src/dotdotdot.ts:225