shave
Version:
Shave is a javascript plugin that truncates multi-line text within a html element based on set max height
12 lines (11 loc) • 312 B
TypeScript
export type Link = {
[key: string]: string | number | boolean;
};
export type Opts = {
character?: string;
classname?: string;
spaces?: boolean;
charclassname?: string;
link?: Link;
};
export default function shave(target: string | NodeList | Node, maxHeight: number, opts?: Opts): void;