Page 1 of 2

[INFO REQ] lwc simple click

Posted: Thu Dec 01, 2022 12:15 pm
by frederick45

HI,

on my lwc (salesforce), i must to edit or drag and drop an event, i must double click on, how to just do a simple click ?

BR


Re: [INFO REQ] lwc simple click

Posted: Thu Dec 01, 2022 2:53 pm
by alex.l

Does this that you are looking for?
https://bryntum.com/products/scheduler/docs/api/Scheduler/feature/EventEdit#config-triggerEvent

The event that shall trigger showing the editor. Defaults to eventdblclick, set to '' or null to disable editing of existing events.


Re: [INFO REQ] lwc simple click

Posted: Thu Dec 01, 2022 2:53 pm
by alex.l

Re: [INFO REQ] lwc simple click

Posted: Thu Dec 01, 2022 3:04 pm
by frederick45

ok, but i just want to modify config somewhere, not all trigger


Re: [INFO REQ] lwc simple click

Posted: Thu Dec 01, 2022 3:05 pm
by alex.l

Not sure I got your requirements. Could you please describe the use case in more words?


Re: [INFO REQ] lwc simple click

Posted: Thu Dec 01, 2022 3:09 pm
by frederick45

i want to open the editor, drag an event by simple click, and not double click


Re: [INFO REQ] lwc simple click

Posted: Thu Dec 01, 2022 3:14 pm
by alex.l

i want to open the editor,

This is clear. See my response above.

drag an event by simple click, and not double click

This is not clear. How to drag event by double click?

ok, but i just want to modify config somewhere, not all trigger

This is also not clear. Do you want to open the editor by single click only for few events and not for all?


Re: [INFO REQ] lwc simple click

Posted: Thu Dec 01, 2022 3:16 pm
by frederick45

to open the editor, or to drag and drop an event, i must double click on, i just want to simple click


Re: [INFO REQ] lwc simple click

Posted: Thu Dec 01, 2022 3:34 pm
by alex.l

To open an editor by one click, try this

    createScheduler() {
        window.scheduler = new bryntum.scheduler.Scheduler({
            features: {
                eventEdit: {
                    triggerEvent : 'eventClick'

But this part I still don't understand

to drag and drop an event, i must double click on

Could you please make a video when you need to double click for dragging?


Re: [INFO REQ] lwc simple click

Posted: Fri Dec 02, 2022 3:29 pm
by frederick45

you will not see the double click on a video