Completed
1,342 in last 30 days
Stat Boxes, for use in the CRM Dashboard, display important statistics for users to make informed decisions about their business.
1,342 in last 30 days
1,342 in last 30 days
1,342 in last 30 days
1,342 in last 30 days
No insights to show
No insights to show
No insights to show
SageStatBox
<h3 class="t-sage-heading-6">Default with Data</h3>
<%= sage_component SageStatBox, {
change: {
type: "positive",
value: "30%",
},
data: "1,342",
has_data: true,
link: {
href: "#",
value: "View More",
},
timeframe: "in last 30 days",
title: "Completed",
} %>
<h3 class="t-sage-heading-6">Default with Legend Dot - Sage Color</h3>
<%= sage_component SageStatBox, {
change: {
type: "positive",
value: "30%",
},
data: "1,342",
has_data: true,
legend_dot_color: "purple",
link: {
href: "#",
value: "View More",
},
timeframe: "in last 30 days",
title: "Completed",
} %>
<h3 class="t-sage-heading-6">Default with Legend Dot - Custom Color</h3>
<%= sage_component SageStatBox, {
change: {
type: "positive",
value: "30%",
},
data: "1,342",
has_data: true,
legend_dot_custom_color: "#4fc9c5",
link: {
href: "#",
value: "View More",
},
timeframe: "in last 30 days",
title: "Completed",
} %>
<h3 class="t-sage-heading-6">Default with Data - Raised</h3>
<%= sage_component SageStatBox, {
change: {
type: "positive",
value: "30%",
},
data: "1,342",
has_data: true,
link: {
href: "#",
value: "View More",
},
timeframe: "in last 30 days",
title: "Completed",
} %>
<h3 class="t-sage-heading-6">Simple with Image</h3>
<%= sage_component SageStatBox, {
data: "No insights to show",
has_data: false,
image: {
src: "card-placeholder-sm.png"
},
title: "Completed",
} %>
<h3 class="t-sage-heading-6">Simple with Icon</h3>
<%= sage_component SageStatBox, {
data: "No insights to show",
has_data: false,
icon: {
name: "check",
card_color: "published"
},
title: "Completed",
} %>
<h3 class="t-sage-heading-6">Null View</h3>
<%= sage_component SageStatBox, {
data: "No insights to show",
has_data: false,
title: "Completed",
} %>
Property | Description | Type | Default |
---|---|---|---|
|
Sets the |
|
|
|
Custom label or content. |
String |
|
|
Numeric data displayed. |
String |
|
|
Boolean that determines styling for |
Bool |
|
|
Shows icon to the left of data. |
|
|
|
Shows image to the left of data. |
|
|
|
Show Legend dot with preset Sage system colors. |
Sage system colors |
|
|
Show Legend dot with any custom color. |
String |
|
|
Sets the |
|
|
|
Sets "raised panel" styling. |
Boolean |
|
|
Slot for popover or custom content. |
String |
|
|
Timeframe for data. |
String |
|
|
Text displayed as the title. |
String |
|