@mendix/pluggable-widgets-tools
Version:
Mendix Pluggable Widgets Tools
42 lines (39 loc) • 1.5 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.imageNativeOutput = exports.imageWebOutput = void 0;
exports.imageWebOutput = `/**
* This file was generated from MyWidget.xml
* WARNING: All changes made to this file will be overwritten
* @author Mendix Widgets Framework Team
*/
import { ActionValue, DynamicValue, EditableImageValue, EditableValue, WebImage } from "mendix";
export interface MyWidgetContainerProps {
name: string;
tabIndex?: number;
id: string;
image: DynamicValue<WebImage>;
image2?: DynamicValue<WebImage>;
image3: EditableImageValue<WebImage>;
description: EditableValue<string>;
action?: ActionValue;
}
export interface MyWidgetPreviewProps {
readOnly: boolean;
renderMode: "design" | "xray" | "structure";
translate: (text: string) => string;
image: { type: "static"; imageUrl: string; } | { type: "dynamic"; entity: string; } | null;
image2: { type: "static"; imageUrl: string; } | { type: "dynamic"; entity: string; } | null;
image3: { type: "static"; imageUrl: string; } | { type: "dynamic"; entity: string; } | null;
description: string;
action: {} | null;
}
`;
exports.imageNativeOutput = `export interface MyWidgetProps<Style> {
name: string;
style: Style[];
image: DynamicValue<NativeImage>;
image2?: DynamicValue<NativeImage>;
image3: EditableImageValue<NativeImage>;
description: EditableValue<string>;
action?: ActionValue;
}`;