Prev Next Chart

  • Shows chart with prev next functionality.

Example Link

Features/Functionality

  • Shows chart data with pagination.
  • Next data is shown on click of next icon.
  • Prev data is shown on click of next icon.
  • Click event callback will called on click.
  • Component is responsive.
  • It is cross browser compatible. (IE11, Edge, Firefox, chrome).

Basic Usage

Dependencies

Definition

<cst-s-prev-next-chart schema.bind="${schema}"></cst-s-prev-next-chart>

Schema Description

AttributeValueDescription
idstring typeIdentifier for component.

data

object typeData to be shown.

dataAPI

object typeAPIs to be called to get data.
dataFormatCallbackstring typeMethod to be called to format data.
iconBarSchemaobject typeIcon Bar Class instance.
customParentContextany typeParent Context.

options

object typeOptions for the component.
iconBarSchemaobject typeInstance of Icon Bar Schema Cls.
onClickstring typeMethod to be called on click of icon.
elmInstanceany typeIcon element instance.

subAccessCtrl

object typeAccess Ctrl for the component.

subTheme

object typeTheme for the component.

subFont

object typeFont for the component.

subStyle

object typeStyle for the component.

subRawAttributes

object typeRaw Attributes for the component.

data

PropertyValueDescription
idArrarray typeArray of all the ids.
dataArrobject array typeData Array.

dataAPI

PropertyValueDescription
idApiobject typeMethod, body, url to get ids.
summaryDataApiobject typeMethod, body, url to get data..

options

PropertyValueDescription
countToLoadNextData20(default)Count To Load Next Data.
pageSize10(default)Data to be shown in one page.
chartVariantbar(default)Chart type to be shown.

Schema Example

let schema = {
id: '',
data: {},
dataAPI:{},
dataFormatCallback: '',
iconBarSchema: {},
options: {}
elmInstance: '',
customParentContext: '',
subFeatureFlag: {},
subAccessCtrl: {},
subTheme: {},
subFont: {},
subStyle: {},
subRawAttributes: {}
}