The StructurePreviewProps type is used to define the structure of the widget preview. The widget preview is used to visualize the widget in the Mendix Studio Pro and Studio. It can be used to render a custom image, a container, a row layout, text, a drop zone, a selectable object, or a data source. The widget preview can be used to visualize the widget in the Mendix Studio Pro and Studio. It can be used to render a custom image, a container, a row layout, text, a drop zone, a selectable object, or a data source.

interface ContainerProps {
    backgroundColor?: string;
    borderRadius?: number;
    borderWidth?: number;
    borders?: boolean;
    children?: StructurePreviewProps[];
    grow?: number;
    padding?: number;
    type: "Container";
}

Hierarchy (view full)

Properties

backgroundColor?: string

HTML color, formatted #RRGGBB

borderRadius?: number

Integer. Can be used to create rounded borders

borderWidth?: number

Integer. Can be used to set the width of the border

borders?: boolean

Sets borders around the layout to visually group its children

grow?: number

grow is optional and only takes effect if the current element is a child of a row layout

padding?: number

Integer. Adds padding around the container

type: "Container"

The type of the preview element

Generated using TypeDoc