UNPKG

@ux-aspects/ux-aspects

Version:

Open source user interface framework for building modern, responsive, mobile big data applications

35 lines (34 loc) 1.75 kB
import { QueryList } from '@angular/core'; import { ResizableTableColumnComponent } from '../resizable-table-column.component'; import { BaseResizableTableService, ResizableTableType } from '../resizable-table-base.service'; import * as i0 from "@angular/core"; export declare class ResizableTableService extends BaseResizableTableService { /** Define the type of resizing we should use */ type: ResizableTableType; /** Store the QueryList of columns */ private _columns; /** Store the size of each column */ setColumns(columns: QueryList<ResizableTableColumnComponent>): void; /** Set all resizable columns to the same width */ setUniformWidths(): void; ensureNoOverflow(columns: ReadonlyArray<number>): ReadonlyArray<number>; /** Allow setting the column size in any unit */ setColumnWidth(index: number, value: number, unit: ColumnUnit, columns?: ReadonlyArray<number>): ReadonlyArray<number>; /** Resize a column by a specific pixel amount */ resizeColumn(index: number, delta: number, isDragging?: boolean): void; getVariableColumn(delta: number): ResizableTableColumnComponent | null; getColumn(index: number): ResizableTableColumnComponent | null; getColumnDisabled(index: number): boolean; /** Determine whether a column is above or below its minimum width */ private isWidthValid; /** Get the next column in the sequence of columns */ private getSiblingColumn; /** Get the column class from our query list */ private getColumnInstance; static ɵfac: i0.ɵɵFactoryDeclaration<ResizableTableService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ResizableTableService>; } export declare enum ColumnUnit { Pixel = 0, Percentage = 1 }