Function MockWorkspaceSearchSection
- MockWorkspaceSearchSection(overrides?): DeviceApi.SearchSection
Parameters
Optionaloverrides: {
colSpan?: ColSpan;
id?: string;
metadata?: {
activeFacets?: (undefined | {
facetLabel?: string;
facetProperty?: string;
valueLabel?: string;
valueValue?: string;
})[];
backgroundColor?: string;
displayType?: SearchSectionDisplayType;
itemsLimit?: number;
padding?: {
bottom?: number;
left?: number;
right?: number;
top?: number;
};
resultTitle?: string;
searchQuery?: string;
titleStyle?: {
align?: "left" | "right" | "center";
backgroundColor?: string;
borderThickness?: "thin" | "medium" | "thick";
corner?: "rounded" | "straight";
fontColor?: string;
fontFamily?: string;
fontSize?: string;
fontVariant?: string;
style?: "solid" | "border" | "bottom-border";
};
};
offset?: number;
type?: "search";
}OptionalcolSpan?: ColSpan
Optionalid?: string
Optionalmetadata?: {
activeFacets?: (undefined | {
facetLabel?: string;
facetProperty?: string;
valueLabel?: string;
valueValue?: string;
})[];
backgroundColor?: string;
displayType?: SearchSectionDisplayType;
itemsLimit?: number;
padding?: {
bottom?: number;
left?: number;
right?: number;
top?: number;
};
resultTitle?: string;
searchQuery?: string;
titleStyle?: {
align?: "left" | "right" | "center";
backgroundColor?: string;
borderThickness?: "thin" | "medium" | "thick";
corner?: "rounded" | "straight";
fontColor?: string;
fontFamily?: string;
fontSize?: string;
fontVariant?: string;
style?: "solid" | "border" | "bottom-border";
};
}
OptionalactiveFacets?: (undefined | {
facetLabel?: string;
facetProperty?: string;
valueLabel?: string;
valueValue?: string;
})[]
OptionalbackgroundColor?: string
OptionaldisplayType?: SearchSectionDisplayType
OptionalitemsLimit?: number
Optionalpadding?: {
bottom?: number;
left?: number;
right?: number;
top?: number;
}
Optionalbottom?: number
Optionalleft?: number
Optionalright?: number
Optionaltop?: number
OptionalresultTitle?: string
OptionalsearchQuery?: string
OptionaltitleStyle?: {
align?: "left" | "right" | "center";
backgroundColor?: string;
borderThickness?: "thin" | "medium" | "thick";
corner?: "rounded" | "straight";
fontColor?: string;
fontFamily?: string;
fontSize?: string;
fontVariant?: string;
style?: "solid" | "border" | "bottom-border";
}
Optionalalign?: "left" | "right" | "center"
OptionalbackgroundColor?: string
OptionalborderThickness?: "thin" | "medium" | "thick"
Optionalcorner?: "rounded" | "straight"
OptionalfontColor?: string
OptionalfontFamily?: string
OptionalfontSize?: string
OptionalfontVariant?: string
Optionalstyle?: "solid" | "border" | "bottom-border"
Optionaloffset?: number
Optionaltype?: "search"
Returns DeviceApi.SearchSection