SmartAdmin
Docs HomeProduct SiteSupport
  • WireBootstrap for SmartAdmin
  • Installation
  • Libs
  • Pages
  • Components
    • Analytics KPI
      • Configuration
    • Marketing KPI
      • Configuration
Powered by GitBook
On this page
  • Library
  • Class
  • Example
  1. Components

Analytics KPI

PreviousComponentsNextConfiguration

Last updated 3 years ago

The component is native to the SmartAdmin theme. The component uses a sparkline trend next to a metric and associated label.

Library

The Analytics KPI component is located in the SmartAdmin for WireBootstrap library file located at \lib\smart-admin.

Class

To create a new instance of the Analytics KPI component, use the wire.smartAdmin.kpiCount class.

const kpi = wire.smartAdmin.kpiAnalytics();

Example

An example that demonstrates the Analytics KPI component can be found in the SmartAdmin for WireBootstrap project at \pages\kpis-analytics.html.

The Analytics KPI extends the class. As such, it inherits all the base functionality of that class.

wire.ui.component
SmartAdmin Analytics KPI
SmartAdmin Analytics KPI