Our pure JavaScript Scheduler component


Post by nate »

I am rendering an event using a custom renderer which has a text input inside of it. It renders perfectly but a Bryntum script is preventing me from focusing it by clicking. Is there a way to allow it to be focusable just by configuration?

A minimal example would look like
 eventRenderer : ({eventRecord}) => {
      return `
          <input type="text"/>
      `;
  }

Post by saki »

The keyboard and mouse events are captured within the rendered (scheduler) event DOM to allow selecting, dragging, resizing, etc. and having an input field directly inside of the event is not supported.

The primary way how to edit events is to open the event editor popup (dblclick), edit in the popup and save. If you want to avoid dblclicks, it can be reconfigured for single clicks with:
    features : {
        eventEdit : {
            triggerEvent : 'eventclick'
        }
    }

Post by saki »

I have created a feature request to investigate and possibly fix the stealing focus issue. The ticket is here: https://github.com/bryntum/support/issues/500

Post Reply