Skip to content

Commit

Permalink
* dtable: refactor types.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Aug 29, 2024
1 parent 5fb86a4 commit f3d475a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions lib/dtable/src/types/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ export interface DTableDataOptions<C = ColSetting> {
}

export interface DTableLayoutOptions {
width: number | '100%' | ((this: DTable) => number | '100%');
height: number | '100%' | 'auto' | {min: number, max: number} | ((this: DTable, actualHeight: number) => number | 'auto' | {min: number, max: number});
width?: number | '100%' | ((this: DTable) => number | '100%');
height?: number | '100%' | 'auto' | {min: number, max: number} | ((this: DTable, actualHeight: number) => number | 'auto' | {min: number, max: number});
fixedLeftWidth?: number | 'auto' | `${number}%` | ((this: DTable) => number);
fixedRightWidth?: number | 'auto' | `${number}%` | ((this: DTable) => number);
rowHeight: number;
defaultColWidth: number;
minColWidth: number;
maxColWidth: number;
rowHeight?: number;
defaultColWidth?: number;
minColWidth?: number;
maxColWidth?: number;
header?: boolean | CustomRenderResultList<[layout: DTableLayout], DTable> | CustomRenderResultGenerator<[layout: DTableLayout], DTable> | CustomRenderResultItem;
footer?: boolean | CustomRenderResultList<[layout: DTableLayout], DTable> | ((this: DTable, layout: DTableLayout) => CustomRenderResultList<[layout: DTableLayout], DTable>);
headerHeight: number;
footerHeight: number;
responsive: boolean | string;
scrollbarHover: boolean;
headerHeight?: number;
footerHeight?: number;
responsive?: boolean | string;
scrollbarHover?: boolean;
scrollbarSize?: number;
horzScrollbarPos?: 'inside' | 'outside';
vertScrollbarPos?: 'inside' | 'outside';
Expand Down

0 comments on commit f3d475a

Please sign in to comment.