@mendix/pluggable-widgets-tools
Version:
Mendix Pluggable Widgets Tools
45 lines (42 loc) • 1.4 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.containmentNativeOutput = exports.containmentWebOutput = void 0;
exports.containmentWebOutput = `/**
* This file was generated from MyWidget.xml
* WARNING: All changes made to this file will be overwritten
* @author Mendix Widgets Framework Team
*/
import { ComponentType, CSSProperties, ReactNode } from "react";
import { ActionValue, EditableValue } from "mendix";
export interface MyWidgetContainerProps {
name: string;
class: string;
style?: CSSProperties;
tabIndex?: number;
content: ReactNode;
description: EditableValue<string>;
action?: ActionValue;
}
export interface MyWidgetPreviewProps {
/**
* @deprecated Deprecated since version 9.18.0. Please use class property instead.
*/
className: string;
class: string;
style: string;
styleObject?: CSSProperties;
readOnly: boolean;
renderMode: "design" | "xray" | "structure";
translate: (text: string) => string;
content: { widgetCount: number; renderer: ComponentType<{ children: ReactNode; caption?: string }> };
description: string;
action: {} | null;
}
`;
exports.containmentNativeOutput = `export interface MyWidgetProps<Style> {
name: string;
style: Style[];
content: ReactNode;
description: EditableValue<string>;
action?: ActionValue;
}`;