cardShape
Description
Optional. An object with settings for managing information displayed on the left side of cards
Usage
cardShape?: {
category?: boolean,
details?: boolean,
preview?: boolean,
price?: boolean,
review?: boolean,
subtitle?: boolean,
title?: boolean
};
Parameters
To configure the card appearance, in the cardShape object you can specify the following parameters (fields):
category
- (optional) shows/hides a card's namedetails
- (optional) shows/hides detailspreview
- (optional) shows/hides a preview imageprice
- (optional) shows/hides pricereview
- (optional) shows/hides rating informationsubtitle
- (optional) shows/hides a card's subtitletitle
- (optional) shows/hides a card's title
Default config
const defaultCardShape = {
category: true,
details: true,
preview: true,
price: true,
review: true,
subtitle: false,
title: true
};
Example
const cardShape = {
review: false,
subtitle: false,
price: false
};
new booking.Booking("#root", {
cardShape,
// other parameters
});
The snippet below demonstrates how to configure what to display on the left side of cards: