Hello.
I'm trying to make calendar scroll open in current hour when it opens.
I found this property
scrollable
, I tried like this:
.html:
<bry-calendar #calendar style="height: calc(100vh - 165px) !important;" *ngIf="flag" [date]='calendarDate'
[modes]='modes' [resources]='resources' [events]='events' [sidebar]='calendarConfig.sidebar'
[tbar]='calendarConfig.tbar' (onCalendarEvents)='onCalendarEvents($event)' [scrollable]="scrollableVar">
</bry-calendar>
scrollableVar = {
x: 500,
y: 1500,
overflowX: false,
overflowY: false
}
After that I tried to use a function from this property in my .ts file:
this.calendar.calendarInstance.scrollable.x = 200;
this.calendar.calendarInstance.scrollable.y = 1000;
this.calendar.calendarInstance.scrollable.scrollTo(200, 1000);
Unfortunately it don't work. Could someone help me?