UNPKG

@mendix/pluggable-widgets-tools

Version:
3 lines (2 loc) 1.35 kB
export declare const iconWebOutput = "/**\n * This file was generated from MyWidget.xml\n * WARNING: All changes made to this file will be overwritten\n * @author Mendix Widgets Framework Team\n */\nimport { DynamicValue, WebIcon } from \"mendix\";\n\nexport interface IconsType {\n firstIcon: DynamicValue<WebIcon>;\n secondIcon: DynamicValue<WebIcon>;\n}\n\nexport interface IconsPreviewType {\n firstIcon: { type: \"glyph\"; iconClass: string; } | { type: \"image\"; imageUrl: string; iconUrl: string; } | { type: \"icon\"; iconClass: string; } | undefined;\n secondIcon: { type: \"glyph\"; iconClass: string; } | { type: \"image\"; imageUrl: string; iconUrl: string; } | { type: \"icon\"; iconClass: string; } | undefined;\n}\n\nexport interface MyWidgetContainerProps {\n name: string;\n tabIndex?: number;\n id: string;\n icons: IconsType[];\n}\n\nexport interface MyWidgetPreviewProps {\n readOnly: boolean;\n renderMode: \"design\" | \"xray\" | \"structure\";\n translate: (text: string) => string;\n icons: IconsPreviewType[];\n}\n"; export declare const iconNativeOutput = "export interface IconsType {\n firstIcon: DynamicValue<NativeIcon>;\n secondIcon: DynamicValue<NativeIcon>;\n}\n\nexport interface MyWidgetProps<Style> {\n name: string;\n style: Style[];\n icons: IconsType[];\n}";