Readonly without update
Hello,
If we set readonly to true, parameter will be updated and change events occur every interval. For example:
pane.addBinding(PARAMS, 'time', {
readonly: true,
interval: 1000,
});
How to display simple readonly parameter that is not editable and should not be updated? Thank you.
hi, you can try to pass interval: 0, in which case Tweakpane would use a {{ManualTicker}} under the hood. if I understand correctly, it won't trigger updates unless you specifically tell it to do so.
Hi, Do you know where this is implemented in the source code?
ticker is created here https://github.com/cocopon/tweakpane/blob/main/packages/core/src/monitor-binding/plugin.ts#L117
then it is passed to the MonitorBindingValue constructor in the same file a bit lower on line 169
Thank you!