UNPKG

@stimulus-library/controllers

Version:

A library of useful controllers for Stimulus

31 lines (30 loc) 1.01 kB
import { BaseController } from "@stimulus-library/utilities"; export declare class TableTruncateController extends BaseController { static targets: string[]; static values: { limit: NumberConstructor; truncated: BooleanConstructor; expanded: BooleanConstructor; }; readonly showMoreTarget: HTMLElement; limitValue: number; readonly hasLimitValue: boolean; truncatedValue: boolean; readonly hasTruncatedValue: boolean; expandedValue: boolean; readonly hasExpandedValue: boolean; get _truncated(): boolean; set _truncated(value: boolean); get _expanded(): boolean; set _expanded(value: boolean); get _tableBody(): HTMLTableSectionElement; get _tableRows(): HTMLTableRowElement[]; get _limit(): number; connect(): void; truncate(event?: Event): void; expand(event?: Event): void; mutate(_entries: MutationRecord[]): void; private _showElement; private _hideElement; private _reTruncate; }