@thoughtspot/plugin-brush-link
v0.0.2
Published
Add Brushing and linking to your ThoughtSpot embed apps.
Downloads
9
Maintainers
Keywords
Readme
Brush and Link
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".
})
]
})