Skip to content

TotalSalesCard

File: @views/Widgets/TotalSalesCard

TotalSalesCard is a highly customizable widget that displays total sales details.

Props

For TotalSalesCard widget, the following props are available:

PropTypeDefaultNote
titleString-Card title.
chartDataObject-Adds chart data.
chartLoadedBoolean-Checks if the chart is loaded.
optionsArray-options are displayed by a dropdown at the top-right corner of the card and each option is an object with title:String , id:any, events:Object properties. events property is an object that contains event handlers such as onClick function.
classNameString-Overrides or extends the component's styles.

Children

The TotalSalesCard widget provides children props that enable you to add extra content to the bottom of the card.

ChildrenDescription
✔️Component’s content.

COPYRIGHT