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.
Timeline - disable dblclick
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
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
4) could you please suggest some workaround?
Regards,
Bartek
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
4) could you please suggest some workaround?
Regards,
Bartek
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
I really hope you put some parameter to disable the double-click function.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
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
Hibernate 4.3.10 Final | NetBeans 8.1 | JDK 1.8.0_45
-
- Information
-
Who is online
Users browsing this forum: No registered users and 8 guests