change-tracker-react-cli
TypeScript icon, indicating that this package has built-in type declarations

0.0.13 • Public • Published

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>
    )
}

Readme

Keywords

Package Sidebar

Install

npm i change-tracker-react-cli

Weekly Downloads

5

Version

0.0.13

License

ISC

Unpacked Size

341 kB

Total Files

4

Last publish

Collaborators

  • detrash