0.0.2 • Published 2 years ago

@thoughtspot/plugin-brush-link v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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".
    })
  ]
})
0.0.2

2 years ago

0.0.1

2 years ago