Premium support for our pure JavaScript UI components


Post by simiczky »

Hi!

Scheduler Pro 4.0.0-rc-1

i want to install the zoom slider
https://www.bryntum.com/examples/examples-scheduler/timeresolution/

Angular8

my code:
html:

<input type="range" min=1 max=25 value=15 step=1 ref="zoom" (change)="zoomLevel($event)">

.ts

 zoomLevel(v){

let zoom = v.target.value;
this.scheduler.schedulerInstance.zoomLevel = zoom;

  }

i get this error

  ERROR Error: Invalid ViewPreset requested: 5
    at Scheduler.normalizePreset (schedulerpro.lite.umd.js:194714)
    at Scheduler.zoomToLevel (schedulerpro.lite.umd.js:195272)
    at Scheduler.set (schedulerpro.lite.umd.js:195706)
    at ScheduleWorkstationComponent.zoomLevel (schedule-workstation.component.ts:217)
    at Object.eval [as handleEvent] (ScheduleWorkstationComponent.html:49)
    at handleEvent (core.js:43993)
    at callWithDebugContext (core.js:45632)
    at Object.debugHandleEvent [as handleEvent] (core.js:45247)
    at dispatchEvent (core.js:29804)
    at core.js:42925

thx


Post by simiczky »

hehe.. storno!

let zoom = parseInt(v.target.value);

sry!, this feature good


Post Reply