Files
customlistview/typings/CustomListViewProps.d.ts

53 lines
1.6 KiB
TypeScript
Raw Normal View History

2020-12-21 09:18:57 +01:00
/**
* This file was generated from CustomListView.xml
* WARNING: All changes made to this file will be overwritten
* @author Mendix Widgets Framework Team
2020-12-21 09:18:57 +01:00
*/
import { ComponentType, CSSProperties, ReactNode } from "react";
2020-12-21 09:18:57 +01:00
import { EditableValue, ListValue, ListActionValue, ListWidgetValue } from "mendix";
import { Big } from "big.js";
2020-12-21 09:18:57 +01:00
export interface CustomListViewProps<Style> {
name: string;
style: Style[];
ds: ListValue;
container: ListWidgetValue;
scrollView: boolean;
onClick?: ListActionValue;
emptyMessage: string;
scrollToItem?: EditableValue<boolean>;
scrollItem?: EditableValue<Big>;
2020-12-21 09:18:57 +01:00
windowSize: number;
initialNumToRender: number;
maxNumberToRenderPerBatch: number;
cellBatchingSize: number;
removeClippedSubviews: boolean;
useItemLayout: boolean;
itemSize: Big;
2020-12-21 09:18:57 +01:00
}
export interface CustomListViewPreviewProps {
/**
* @deprecated Deprecated since version 9.18.0. Please use class property instead.
*/
className: string;
2020-12-21 09:18:57 +01:00
class: string;
style: string;
styleObject?: CSSProperties;
readOnly: boolean;
ds: {} | { caption: string } | { type: string } | null;
container: { widgetCount: number; renderer: ComponentType<{ children: ReactNode; caption?: string }> };
2020-12-21 09:18:57 +01:00
scrollView: boolean;
onClick: {} | null;
emptyMessage: string;
scrollToItem: string;
scrollItem: string;
windowSize: number | null;
initialNumToRender: number | null;
maxNumberToRenderPerBatch: number | null;
cellBatchingSize: number | null;
removeClippedSubviews: boolean;
useItemLayout: boolean;
itemSize: number | null;
}