Function MockWorkspacePage
- MockWorkspacePage(overrides?): DeviceApi.WorkspacePage
Parameters
Optionaloverrides: {
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;
}Optionallayout?: {
rows?: (undefined | {
metadata?: {
backgroundColor?: (...) | (...);
backgroundImageFileSlug?: (...) | (...);
backgroundImageSlug?: (...) | (...);
backgroundImageXPosition?: (...) | (...);
backgroundImageYPosition?: (...) | (...);
padding?: (...) | (...);
textColor?: (...) | (...);
};
sections?: (
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...))[];
})[];
}
Optionalrows?: (undefined | {
metadata?: {
backgroundColor?: (...) | (...);
backgroundImageFileSlug?: (...) | (...);
backgroundImageSlug?: (...) | (...);
backgroundImageXPosition?: (...) | (...);
backgroundImageYPosition?: (...) | (...);
padding?: (...) | (...);
textColor?: (...) | (...);
};
sections?: (
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...))[];
})[]
Optionalmetadata?: {
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;
}
OptionalbackgroundColor?: string
OptionalbackgroundImageFileSlug?: string
OptionalbackgroundImageSlug?: string
OptionalbackgroundImageXPosition?: XPosition
OptionalbackgroundImageYPosition?: YPosition
OptionalbackgroundVideoSlug?: string
OptionalbackgroundVideoXPosition?: XPosition
OptionalbackgroundVideoYPosition?: YPosition
OptionalcontentItemStyle?: {
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";
};
}
OptionalcontentItemDisplayType?: ContentItemDisplayType
OptionalgridStyle?: {
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";
}
Optionalcorner?: "rounded" | "straight"
OptionalframeColor?: string
OptionalhasFrame?: boolean
OptionalhasShadow?: boolean
OptionalhideFolderCount?: boolean
OptionalthumbnailShape?: "square" | "imageRatio"
OptionaltitleLength?: "oneLine" | "fullText" | "twoLines"
OptionaltitleStyle?: "attached" | "detached" | "floating"
OptionaltitleTextColor?: "light" | "dark"
OptionaltextColor?: TextColor
Optionaltitle?: string
Optionaltype?: WorkspacePageType
Optionalslug?: string
OptionalworkspaceSlug?: string
Returns DeviceApi.WorkspacePage