Hi,
Our app uses both gantt and scheduler just like in this example.
https://bryntum.com/products/gantt/examples/gantt-schedulerpro/
The flex direction of the container is column to place the widgets vertically.
We want to use a panel like this on
https://bryntum.com/products/schedulerpro/examples/highlight-event-calendars/
We want the panel to be attached to the right side of the screen and should open towards the center of the screen.
but since out flex direction is column its attached either towards the top of the screen or bottom of the screen based on how we place it.
to try to reproduce please use this code in gantt scheduler pro example
// Custom panel that allows easy live configuring
class ConfigPanel extends Panel {
static type = 'configpanel';
static configurable = {
scheduler : null,
title : 'Configuration',
cls : 'config-panel',
items : {
// Toggle features on/off (or rather disable/enable)
features : {
type : 'container',
defaults : {
type : 'slidetoggle',
cls : 'b-blue',
listeners : {
change({ source }) {
const
{ value } = source,
scheduler = this.up('configpanel').scheduler;
switch (source.ref) {
case 'enableDragDrop':
scheduler.features.eventDrag.disabled = !value;
break;
case 'constrainToResource':
scheduler.features.eventDrag.constrainDragToResource = value;
break;
case 'highlight':
scheduler.features.calendarHighlight.disabled = !value;
break;
case 'snap':
scheduler.snap = value;
break;
default:
break;
}
}
}
},
items : {
enableDragDrop : { text : 'Enable task drag drop', checked : true },
highlight : { text : 'Enable highlighting', checked : true },
constrainToResource : { text : 'Constrain drag to row', checked : false },
snap : { text : 'Snap to grid', checked : true }
}
}
}
};
get highlightOnHover() {
return this.widgetMap.highlightOnHover.checked;
}
}
ConfigPanel.initClass();
const configPanel = new ConfigPanel({
appendTo: 'container',
collapsible: { direction : 'left' },
});
We want the panel to be like attached to right side.
currently I don't know which setting to use for this to happen.
please let me know if there is a way.