MCPcopy Create free account
hub / github.com/FrDH/dotdotdot-js / constructor

Method constructor

src/dotdotdot.ts:104–179  ·  view source on GitHub ↗

* Truncate a multiline element with an ellipsis. * * @param {HTMLElement} container The element to truncate. * @param {object} [options=Dotdotdot.options] Options for the menu.

(
        container: HTMLElement,
        options: dddOptions = Dotdotdot.options
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

_getOriginalContentMethod · 0.95
_getMaxHeightMethod · 0.95
truncateMethod · 0.95
watchMethod · 0.95
destroyMethod · 0.80

Tested by

no test coverage detected