PromucFlow_constructor/app/client/src/widgets/DocumentViewerWidget/index.ts

29 lines
920 B
TypeScript
Raw Normal View History

import IconSVG from "./icon.svg";
import Widget from "./widget";
export const CONFIG = {
type: Widget.getWidgetType(),
name: "Document Viewer", // The display name which will be made in uppercase and show in the widgets panel ( can have spaces )
iconSVG: IconSVG,
needsMeta: false, // Defines if this widget adds any meta properties
isCanvas: false, // Defines if this widget has a canvas within in which we can drop other widgets
searchTags: ["pdf"],
defaults: {
widgetName: "DocumentViewer",
docUrl:
"https://www.learningcontainer.com/wp-content/uploads/2019/09/sample-pdf-file.pdf",
rows: 40,
columns: 24,
version: 1,
animateLoading: true,
},
properties: {
derived: Widget.getDerivedPropertiesMap(),
default: Widget.getDefaultPropertiesMap(),
meta: Widget.getMetaPropertiesMap(),
config: Widget.getPropertyPaneConfig(),
},
};
export default Widget;