Hi
I use webinar_plugins to create my own plugin (it is working great)
I have one parameters that I need to enter manually and to received it when I press on the value.
I thought to add it to Buckets to Custom Label editor, my problem is that I don't succeed to read it from the plugin.
metricDiv.addEventListener('click', () => {
// NEED TO READ THE Custom Label text
// HOW?
}
See below code
const table = visData.tables[0];
const metrics = [];
let bucketAgg;
table.columns.forEach((column, i) => {
table.rows.forEach(row => {
const value = row[i];
const title = bucketAgg ? `${row[0]} ${column.title}` : column.title;
const metricDiv = document.createElement('div');
metricDiv.className = 'myvis-metric-div';
metricDiv.addEventListener('click', () => {
// NEED TO READ THE Custom Label text
// HOW?
}
}
Thanks
