UNPKG

@hpe/angular-toolkit

Version:

Hewlett-Packard Enterprise : Angular toolkit for rapid project development

58 lines (57 loc) 1.33 kB
export declare type EventCallback = (event: any) => void; export declare class Menu { id?: string; icon?: string; label: string; expanded?: boolean; disabled?: boolean; visible?: boolean; command?: EventCallback; items?: Menu[]; } export declare class ListTableColumn { field: string; header?: string; filter?: string; transcoder?: Transcoder; alignment?: string; styler?: Styler; displayHeader?: string; filterMatchMode?: string; } export interface Transcoder { transcode(value: any, row?: any): string; } export interface Styler { style(value: any, row?: any): CellStyle; } export declare class CellStyle { icon?: string; extraClass?: string; } export declare class DropdownItem { value: any; label: string; } export declare class RowSelectedEvent { row: any; rows: any[]; constructor(row: any, rows: any[]); } export declare class RowUnselectedEvent { row: any; rows: any[]; constructor(row: any, rows: any[]); } export declare class FilterChangeEvent { filteredSize: number; constructor(filteredSize: number); } export interface MenuSelector { select(menuId: string, event: RowSelectedEvent): MenuSelectionMode; } export declare enum MenuSelectionMode { INLCUDE = 0, EXCLUDE = 1, DISABLE = 2, }