cardShape
Description
Optional. An object of settings for managing appearance of the information blocks
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 booking category namedetails
- (optional) shows/hides a booking detail informationpreview
- (optional) shows/hides a booking preview imageprice
- (optional) shows/hides a booking pricereview
- (optional) shows/hides a booking rating informationsubtitle
- (optional) shows/hides a booking subtitletitle
- (optional) shows/hides a booking title
Default config
const defaultCardShape = {
category: true,
details: true,
preview: true,
price: true,
review: true,
subtitle: false,
title: true,
};
Example
const cardShape = {
preview: true,
review: false,
category: true,
title: true,
subtitle: false,
price: true,
details: false,
};
new booking.Booking("#root", {
cardShape,
// other parameters
});
Related articles: