This repository has been archived by the owner on Dec 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 96
/
ImageViewerProps.d.ts
59 lines (52 loc) · 1.85 KB
/
ImageViewerProps.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/**
* This file was generated from ImageViewer.xml
* WARNING: All changes made to this file will be overwritten
* @author Mendix UI Content Team
*/
import { CSSProperties } from "react";
import { ActionValue, DynamicValue, WebIcon, WebImage } from "mendix";
export type DatasourceEnum = "image" | "imageUrl" | "icon";
export type OnClickTypeEnum = "action" | "enlarge";
export type WidthUnitEnum = "auto" | "pixels" | "percentage";
export type HeightUnitEnum = "auto" | "pixels";
export type DisplayAsEnum = "fullImage" | "thumbnail";
export interface ImageViewerContainerProps {
name: string;
class: string;
style?: CSSProperties;
tabIndex?: number;
datasource: DatasourceEnum;
imageObject?: DynamicValue<WebImage>;
defaultImageDynamic?: DynamicValue<WebImage>;
imageUrl?: DynamicValue<string>;
imageIcon?: DynamicValue<WebIcon>;
onClickType: OnClickTypeEnum;
onClick?: ActionValue;
alternativeText?: DynamicValue<string>;
widthUnit: WidthUnitEnum;
width: number;
heightUnit: HeightUnitEnum;
height: number;
iconSize: number;
displayAs: DisplayAsEnum;
responsive: boolean;
}
export interface ImageViewerPreviewProps {
class: string;
style: string;
datasource: DatasourceEnum;
imageObject: { type: "static"; imageUrl: string; } | { type: "dynamic"; entity: string; } | null;
defaultImageDynamic: { type: "static"; imageUrl: string; } | { type: "dynamic"; entity: string; } | null;
imageUrl: string;
imageIcon: { type: "glyph"; iconClass: string; } | { type: "image"; imageUrl: string; } | null;
onClickType: OnClickTypeEnum;
onClick: {} | null;
alternativeText: string;
widthUnit: WidthUnitEnum;
width: number | null;
heightUnit: HeightUnitEnum;
height: number | null;
iconSize: number | null;
displayAs: DisplayAsEnum;
responsive: boolean;
}