* fix * move stylesheet to widget level * fix types * fix types * fix types * fix types ( thanks to ashit ) * fix type issue * add config for list widget * fix jest tests
32 lines
796 B
TypeScript
32 lines
796 B
TypeScript
import IconSVG from "./icon.svg";
|
|
import Widget from "./widget";
|
|
|
|
export const CONFIG = {
|
|
type: Widget.getWidgetType(),
|
|
name: "Iframe",
|
|
iconSVG: IconSVG,
|
|
needsMeta: true,
|
|
searchTags: ["embed"],
|
|
defaults: {
|
|
source: "https://www.example.com",
|
|
borderOpacity: 100,
|
|
borderWidth: 1,
|
|
rows: 32,
|
|
columns: 24,
|
|
widgetName: "Iframe",
|
|
version: 1,
|
|
animateLoading: true,
|
|
},
|
|
properties: {
|
|
derived: Widget.getDerivedPropertiesMap(),
|
|
default: Widget.getDefaultPropertiesMap(),
|
|
meta: Widget.getMetaPropertiesMap(),
|
|
config: Widget.getPropertyPaneConfig(),
|
|
contentConfig: Widget.getPropertyPaneContentConfig(),
|
|
styleConfig: Widget.getPropertyPaneStyleConfig(),
|
|
stylesheetConfig: Widget.getStylesheetConfig(),
|
|
},
|
|
};
|
|
|
|
export default Widget;
|