@hxui/angular
Version:
An Angular library based on the [HXUI design system](https://hxui.io).
63 lines (62 loc) • 1.36 kB
TypeScript
import { SafeHtml } from "@angular/platform-browser";
import { TooltipConfig } from '../tooltip/tooltip.config';
export declare enum TabularColumnTypes {
String = 0,
Icon = 1,
Date = 2,
Actions = 3,
Status = 4,
DateTime = 5,
Checkbox = 6,
Badge = 7,
Number = 8,
Html = 9
}
export interface ITabularColumnOptions {
[key: string]: unknown;
header?: SafeHtml;
}
export declare abstract class ITabularColumn {
/**
* Unique identifier/reference
*/
id: string;
/**
* Label used for display purposes.
*/
label: string;
/**
* Column data type
*/
dataType: TabularColumnTypes;
/**
* Is column sortable?
*/
sortable: boolean;
/**
* Css class name to append to columns
*/
cssClass: string;
/**
* Is column hidden?
*/
hidden: boolean;
/**
* Optional parameters
* - header: replace column label with html string
*/
options?: ITabularColumnOptions;
}
export interface ITabularColumnBadgeType {
label: string;
cssClass?: string;
tooltipConfig?: TooltipConfig;
}
export interface ITabularColumnIconType {
icon: string;
cssClass?: string;
tooltip: {
config: TooltipConfig;
content: string;
};
}