event when you change tab

This issue has been tracked since 2023-01-14.

is there any way to know if the user changed tabs on the pane?

cocopon wrote this answer on 2023-01-16

You can use select event like this:

import { Pane } from 'tweakpane';

const pane = new Pane();
const tab = pane.addTab({
  pages: [
    { title: 'foo' },
    { title: 'bar' },
  ],
});
tab.on('select', (ev) => {
  console.log(ev.index);
});

Ref: #402

rishipandey125 wrote this answer on 2023-01-16

wonderful! thank you so much!

cocopon wrote this answer on 2023-01-22
More Details About Repo
Owner Name cocopon
Repo Name tweakpane
Full Name cocopon/tweakpane
Language TypeScript
Created Date 2016-05-10
Updated Date 2023-03-17
Star Count 2603
Watcher Count 19
Fork Count 71
Issue Count 11

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date