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
|
2023-06-05 13:53:13 +02:00
|
|
|
* @author Mendix Widgets Framework Team
|
2020-12-21 09:18:57 +01:00
|
|
|
*/
|
2023-06-05 13:53:13 +02:00
|
|
|
import { ComponentType, CSSProperties, ReactNode } from "react";
|
2020-12-21 09:18:57 +01:00
|
|
|
import { EditableValue, ListValue, ListActionValue, ListWidgetValue } from "mendix";
|
2023-06-05 13:53:13 +02:00
|
|
|
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>;
|
2023-06-05 13:53:13 +02:00
|
|
|
scrollItem?: EditableValue<Big>;
|
2020-12-21 09:18:57 +01:00
|
|
|
windowSize: number;
|
|
|
|
|
initialNumToRender: number;
|
|
|
|
|
maxNumberToRenderPerBatch: number;
|
|
|
|
|
cellBatchingSize: number;
|
|
|
|
|
removeClippedSubviews: boolean;
|
|
|
|
|
useItemLayout: boolean;
|
2023-06-05 13:53:13 +02:00
|
|
|
itemSize: Big;
|
2020-12-21 09:18:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface CustomListViewPreviewProps {
|
2023-06-05 13:53:13 +02:00
|
|
|
/**
|
|
|
|
|
* @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;
|
2023-06-05 13:53:13 +02:00
|
|
|
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;
|
|
|
|
|
}
|