Function MockWorkspacePage
- MockWorkspacePage(overrides?): DeviceApi.WorkspacePage
Parameters
Optional
overrides: {
layout?: {
rows?: (undefined | {
metadata?: {
backgroundColor?: (...) | (...);
backgroundImageFileSlug?: (...) | (...);
backgroundImageSlug?: (...) | (...);
backgroundImageXPosition?: (...) | (...);
backgroundImageYPosition?: (...) | (...);
padding?: (...) | (...);
textColor?: (...) | (...);
};
sections?: (
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...))[];
})[];
};
metadata?: {
backgroundColor?: string;
backgroundImageFileSlug?: string;
backgroundImageSlug?: string;
backgroundImageXPosition?: XPosition;
backgroundImageYPosition?: YPosition;
backgroundVideoSlug?: string;
backgroundVideoXPosition?: XPosition;
backgroundVideoYPosition?: YPosition;
contentItemStyle?: {
contentItemDisplayType?: ContentItemDisplayType;
gridStyle?: {
corner?: "rounded" | "straight";
frameColor?: string;
hasFrame?: boolean;
hasShadow?: boolean;
hideFolderCount?: boolean;
thumbnailShape?: "square" | "imageRatio";
titleLength?: "oneLine" | "fullText" | "twoLines";
titleStyle?: "attached" | "detached" | "floating";
titleTextColor?: "light" | "dark";
};
};
textColor?: TextColor;
title?: string;
type?: WorkspacePageType;
};
slug?: string;
workspaceSlug?: string;
}Optional
layout?: {
rows?: (undefined | {
metadata?: {
backgroundColor?: (...) | (...);
backgroundImageFileSlug?: (...) | (...);
backgroundImageSlug?: (...) | (...);
backgroundImageXPosition?: (...) | (...);
backgroundImageYPosition?: (...) | (...);
padding?: (...) | (...);
textColor?: (...) | (...);
};
sections?: (
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...))[];
})[];
}
Optional
rows?: (undefined | {
metadata?: {
backgroundColor?: (...) | (...);
backgroundImageFileSlug?: (...) | (...);
backgroundImageSlug?: (...) | (...);
backgroundImageXPosition?: (...) | (...);
backgroundImageYPosition?: (...) | (...);
padding?: (...) | (...);
textColor?: (...) | (...);
};
sections?: (
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...))[];
})[]
Optional
metadata?: {
backgroundColor?: string;
backgroundImageFileSlug?: string;
backgroundImageSlug?: string;
backgroundImageXPosition?: XPosition;
backgroundImageYPosition?: YPosition;
backgroundVideoSlug?: string;
backgroundVideoXPosition?: XPosition;
backgroundVideoYPosition?: YPosition;
contentItemStyle?: {
contentItemDisplayType?: ContentItemDisplayType;
gridStyle?: {
corner?: "rounded" | "straight";
frameColor?: string;
hasFrame?: boolean;
hasShadow?: boolean;
hideFolderCount?: boolean;
thumbnailShape?: "square" | "imageRatio";
titleLength?: "oneLine" | "fullText" | "twoLines";
titleStyle?: "attached" | "detached" | "floating";
titleTextColor?: "light" | "dark";
};
};
textColor?: TextColor;
title?: string;
type?: WorkspacePageType;
}
Optional
backgroundColor?: string
Optional
backgroundImageFileSlug?: string
Optional
backgroundImageSlug?: string
Optional
backgroundImageXPosition?: XPosition
Optional
backgroundImageYPosition?: YPosition
Optional
backgroundVideoSlug?: string
Optional
backgroundVideoXPosition?: XPosition
Optional
backgroundVideoYPosition?: YPosition
Optional
contentItemStyle?: {
contentItemDisplayType?: ContentItemDisplayType;
gridStyle?: {
corner?: "rounded" | "straight";
frameColor?: string;
hasFrame?: boolean;
hasShadow?: boolean;
hideFolderCount?: boolean;
thumbnailShape?: "square" | "imageRatio";
titleLength?: "oneLine" | "fullText" | "twoLines";
titleStyle?: "attached" | "detached" | "floating";
titleTextColor?: "light" | "dark";
};
}
Optional
contentItemDisplayType?: ContentItemDisplayType
Optional
gridStyle?: {
corner?: "rounded" | "straight";
frameColor?: string;
hasFrame?: boolean;
hasShadow?: boolean;
hideFolderCount?: boolean;
thumbnailShape?: "square" | "imageRatio";
titleLength?: "oneLine" | "fullText" | "twoLines";
titleStyle?: "attached" | "detached" | "floating";
titleTextColor?: "light" | "dark";
}
Optional
corner?: "rounded" | "straight"
Optional
frameColor?: string
Optional
hasFrame?: boolean
Optional
hasShadow?: boolean
Optional
hideFolderCount?: boolean
Optional
thumbnailShape?: "square" | "imageRatio"
Optional
titleLength?: "oneLine" | "fullText" | "twoLines"
Optional
titleStyle?: "attached" | "detached" | "floating"
Optional
titleTextColor?: "light" | "dark"
Optional
textColor?: TextColor
Optional
title?: string
Optional
type?: WorkspacePageType
Optional
slug?: string
Optional
workspaceSlug?: string
Returns DeviceApi.WorkspacePage