Hi Bryntum Team,
I have in my tbar the option to set the columnWidth and the tickHeight:
{
type: 'slider',
ref: 'columnWidth',
text: capitalize(t('agenda.columns_width')),
showValue: true,
min: 50,
max: 300,
value: 'up.resourceColumnWidth',
onInput({ value }) {
console.log(value);
const scheduler = schedulerRef.current?.instance;
const fitWidgetMap =
scheduler.widgetMap.fitButton?.menu.widgetMap ||
{},
fitNoneButton = fitWidgetMap.none,
fitFillButton = fitWidgetMap.fill,
fitFitButton = fitWidgetMap.fit;
if (fitNoneButton) {
fitNoneButton.checked = true;
fitFillButton.checked = false;
fitFitButton.checked = false;
}
scheduler.resourceColumns.fitWidth = scheduler.resourceColumns.fillWidth = null;
scheduler.resourceColumns.columnWidth = value;
}
},
{
type: 'slider',
ref: 'tickHeight',
text: capitalize(t('agenda.rows_height')),
showValue: true,
min: 20,
style: 'margin-top: .5em',
value: 'up.tickSize',
onInput({ value }) {
console.log(value);
const scheduler = schedulerRef.current?.instance;
// To allow ticks to not fill height
scheduler.suppressFit = true;
// Set desired size
scheduler.tickSize = value;
}
}
I would like to save the value in my local storage in order to set it as column and row size next time I open my scheduler.
I can't find where I save this value in my config. Every time I open it, there is scaling according to my device size. How can I handle it?
Thanks for your help.