2021-11-29 15:37:49 +00:00
|
|
|
import IconSVG from "./icon.svg";
|
2022-01-21 10:19:10 +00:00
|
|
|
import Widget from "./widget";
|
2021-11-29 15:37:49 +00:00
|
|
|
|
|
|
|
|
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
|
2022-06-17 03:12:47 +00:00
|
|
|
searchTags: ["pdf"],
|
2021-11-29 15:37:49 +00:00
|
|
|
defaults: {
|
|
|
|
|
widgetName: "DocumentViewer",
|
|
|
|
|
docUrl:
|
|
|
|
|
"https://www.learningcontainer.com/wp-content/uploads/2019/09/sample-pdf-file.pdf",
|
2022-01-21 10:19:10 +00:00
|
|
|
rows: 40,
|
|
|
|
|
columns: 24,
|
2021-11-29 15:37:49 +00:00
|
|
|
version: 1,
|
2021-12-14 07:55:58 +00:00
|
|
|
animateLoading: true,
|
2021-11-29 15:37:49 +00:00
|
|
|
},
|
|
|
|
|
properties: {
|
|
|
|
|
derived: Widget.getDerivedPropertiesMap(),
|
|
|
|
|
default: Widget.getDefaultPropertiesMap(),
|
|
|
|
|
meta: Widget.getMetaPropertiesMap(),
|
|
|
|
|
config: Widget.getPropertyPaneConfig(),
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default Widget;
|