Skip to content

Commit

Permalink
Working with sorting and filters
Browse files Browse the repository at this point in the history
  • Loading branch information
paddymul committed Nov 4, 2024
1 parent d6ebeb8 commit abb2274
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/components/DFViewerParts/TableInfinite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const InfiniteViewer = ({ dataSource }: { dataSource: IDatasource }) => {
return {
flex: 1,
minWidth: 100,
sortable: false,
//sortable: false,
};
}, []);

Expand Down Expand Up @@ -92,12 +92,14 @@ const getPayloadKey = (payloadArgs: PayloadArgs): string => {
const respCache: Record<string, PayloadResponse> = {};
const sourceName = "paddy";
const getDs = (setPaState2: (pa: PayloadArgs) => void): IDatasource => {

const dsLoc: IDatasource = {
rowCount: undefined,
getRows: (params) => {
console.log(
"asking for " + params.startRow + " to " + params.endRow
);
console.log("params", params);
// At this point in your code, you would call the server.
// To make the demo look real, wait for 500ms before returning
const dsPayloadArgs = { sourceName: sourceName, start: params.startRow, end: params.endRow };
Expand Down

0 comments on commit abb2274

Please sign in to comment.