Tweakpane

Boolean

addControl() provides a checkbox for a boolean property.

var params = {
  debug: true
};
var pane = new Tweakpane();
pane.addControl(params, 'debug');

Selector

You can use a named list for boolean value. Use addSelector() and pass an array of two string values (true, false) as values option.

var pane = new Tweakpane();
pane.addSelector(target, 'debug', {
  values: ['Enabled', 'Disabled']
});