There is a built-in button that can hide all row header columns:
https://doc.daypilot.org/scheduler/row-header-hiding/
If you want to hide selected columns only, you can do it by changing the "hidden" property of the desired rowHeaderColumns[] items.
You can add a button/icon to the upper-left corner by defining an active area using onBeforeCornerRender.
Schematically:
onBeforeCornerRender: args => {
args.areas = [
{
right: 3,
top: 3,
height: 20,
width: 20,
symbol: "../icons/daypilot.svg#minichevron-left-2",
onClick: args => {
this.config.rowHeaderColumns[0].hidden = !this.config.rowHeaderColumns[0].hidden;
}
}
];
}
See also:
https://api.daypilot.org/daypilot-scheduler-onbeforecornerrender/