Absolute - Change Tracker - React SDK lib
This package contains a set of ready-to-use React components to retrieve and display Absolute's Change Tracker logs.
Install
npm install --save change-tracker-cli
Components
Built-in Components
Name |
Description |
ChangeTrackerGrid |
full featured grid which retrieve and display the logs. |
ChangeTrackerPopup |
full featured grid in a popup. Retrieve logs when opened. |
Raw Components
Name |
Description |
ChangeTrackerProvider |
top component, provides functionalities to retrieve data from the change-tracker server and build the base model for the following components |
ChangeTrackerTable |
table for showing logs |
ChangeTrackerPopup |
the ChangeTrackerTable component in a popup. On open triggers a new request to the change-tracker server |
Basic Usage
Grid
import {ChangeTrackerGrid} from 'change-tracker-cli'
function ExampleApp(){
return (
<ChangeTrackerGrid tableName="table_name" rowKey="record_id" serviceUrl="https://companyname.changetracker.it"
authToken="xxxxxxxxxxxxxxxxxx" />
)
}
Popup
import {ChangeTrackerGrid} from 'change-tracker-cli'
function ExampleApp(){
useState()
return (
<div>
<button type="button" onClick={}>Open ChangeTracker popup!</button>
<ChangeTrackerGrid tableName="table_name" rowKey="record_id" serviceUrl="https://companyname.changetracker.it"
authToken="xxxxxxxxxxxxxxxxxx" />
</div>
)
}