Skip to content

Commit

Permalink
Add table column typescript definitions (buefy#2953)
Browse files Browse the repository at this point in the history
- Added table column typescript definitions

Co-authored-by: Bruno Francisco <[email protected]>
  • Loading branch information
1 parent 75a33a8 commit bb82420
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion types/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,4 +395,21 @@ export declare const ConfigProgrammatic: {
setOptions: (params: BuefyConfig) => any
}


export interface TableColumn {
label?: string;
'custom-key'?: string | number;
field?: string | number;
meta?: any;
width?: number | string;
numeric?: boolean;
centered?: boolean;
sortable?: boolean;
visible?: boolean;
'custom-sort'?: (a: object, b: object, isAsc: boolean) => void;
searchable?: boolean;
subheading?: string | number;
sticky?: boolean;
'header-selectable'?: boolean;
'header-class'?: string;
'cell-class'?: string;
}

0 comments on commit bb82420

Please sign in to comment.