Timeline - disable dblclick

Community Driven Extensions Project
Post Reply
flavio.oliveri
Posts: 10
Joined: 30 Jan 2013, 20:00

09 May 2013, 23:00

Hello guys, thanks for the brand new timeline.

I notice that in the new version is possible to create a new event with a double click. I want to have keep the event edition but I want to disable the event creation with dblclick and ctrl + drag. It's possible?

I'm using jboss, mojarra, primefaces 3.5 and pe 0.7.0.

Thanks a lot,

Flavio.

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

10 May 2013, 12:06

Possible. I shown this in "Grouping and mergeable events". Use

Code: Select all

<p:ajax event="add" update="@none" onstart="timelineWdgt.cancelAdd()"/>
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

flavio.oliveri
Posts: 10
Joined: 30 Jan 2013, 20:00

10 May 2013, 15:24

Thanks a lot!

herbu
Posts: 24
Joined: 09 Oct 2013, 19:13

19 Dec 2013, 22:11

Hi Oleg,

my first post to this group so please be forgiving :)

Very strange behavior. After applying you suggestion everything works except:

1) add those two lines
<p:ajax event="add" update="@none" onstart="PF('timelineWdgt01').cancelAdd()"/>
<p:ajax event="delete" update="@none" onstart="PF('timelineWdgt01').cancelDelete()"/>


2) select event and then double click the little red cross (delete)

3) magically new event appears :o

4) could you please suggest some workaround?

Regards,
Bartek

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

28 Dec 2013, 17:58

New events can be added per double click on the timeline. This is the standard behavior (feature of this component). So, I quess, the double click on the red cross is propagated to the timeline itself. Use a single click for the red cross. I will report this issue to the native widget or fix it self (I'm the contributor of the native widget). Currently I'm not sure if it is an issue at all. Double click leads to adding a new event per default as I said. Don't matter where you click :)
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

gernan
Posts: 28
Joined: 06 Oct 2012, 05:15

24 Jul 2014, 19:41

Oleg wrote:New events can be added per double click on the timeline. This is the standard behavior (feature of this component). So, I quess, the double click on the red cross is propagated to the timeline itself. Use a single click for the red cross. I will report this issue to the native widget or fix it self (I'm the contributor of the native widget). Currently I'm not sure if it is an issue at all. Double click leads to adding a new event per default as I said. Don't matter where you click :)
I really hope you put some parameter to disable the double-click function.
Primefaces 6.0 | Primefaces Extensions 6.1.0 | Glassfish 4.1.0 | Mojarra 2.2.8
Hibernate 4.3.10 Final | NetBeans 8.1 | JDK 1.8.0_45

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests