@thoughtspot/plugin-brush-link
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Brush and Link

npm version

Add Brushing and linking to your ThoughtSpot embed apps.

Usage

npm i @thoughtspot/plugin-brush-link
import { brushAndLink } from '@thoughtspot/plugin-brush-link';
import { init, LiveboardEmbed } from '@thoughtspot/visual-embed-sdk';

init({
  // .. initialize thoughtspot
});

const embed = new LiveboardEmbed({
  // .. embed config
  plugins: [
    brushAndLink({
      trigger: 'click', // What triggers the behaviour. Options: [click , dblclick]
      behaviour: 'highlight', // What to do when triggered. Options: [highlight, filter]
      resetPrevious: false, // Should reset the previous behaviour when a new one is triggered. Useful for 'filter'.
      onTrigger: (paylog) => void, // Callback when the user "trigger".
    })
  ]
})

Readme

Keywords

none

Package Sidebar

Install

npm i @thoughtspot/plugin-brush-link

Weekly Downloads

2

Version

0.0.2

License

ISC

Unpacked Size

5.71 kB

Total Files

6

Last publish

Collaborators

  • tse-developers
  • ashubham
  • bhanu.jupally
  • mouryab
  • pallavp
  • prashant.patilts
  • utsavkapoor
  • priyanshu.kumar
  • mdabdullasulaiman
  • divyam.lamiyan
  • sastaachar
  • ruchi9897
  • prateekagr98