Hi,
Working with the timeline component in the extensions, and managed to run a sample instance on my own, it is really nice.
Is it possible that the events in the timeline can be made resizable?
I am aware of p:resizable and its "for" property, but when I look at the source code of the extensions project I think it won't work
The events in the timeline get their IDs with event.setId(UUID.randomUUID().toString()) method, so I cannot use p:resizable if I understand it correctly.
Is there any other way?
--
primefaces 3.4.1
primefaxes-extensions 0.6.1
Resizable Event components for Timeline
-
- Posts: 110
- Joined: 10 Nov 2010, 13:43
- Location: Pune, India
- Contact:
You can set Ids manually by implementing Timeline and TimelineEvent interface.
Instead of using DefaultTimeline and DefaultTimelineEvent.
Instead of using DefaultTimeline and DefaultTimelineEvent.
Nilesh N. Mali
---
Angular 2.x | Prime NG
FF: latest | Chrome: latest | vscode
Blog: http://nileshmali.blogspot.in | PrimeFaces Extensions: https://github.com/primefaces-extensions
---
Angular 2.x | Prime NG
FF: latest | Chrome: latest | vscode
Blog: http://nileshmali.blogspot.in | PrimeFaces Extensions: https://github.com/primefaces-extensions
-
- Posts: 2
- Joined: 19 Oct 2012, 09:49
Hi Nilesh,
Thank you for your reply.
As you may already know, the tag works for a single UIComponent.
There will be several TimelineEvent's in a Timeline component and I think p:resizable will not work for these since their IDs will be dynamic.
Is it possible to attach a resizable attribute to TimelineEvent's on the components side independent of their IDs? (A ResizableTimelineEvent component that every instance is resizable without using p:resizable on the jsf side)
Thank you for your reply.
As you may already know, the
Code: Select all
p:resizable for="x"
There will be several TimelineEvent's in a Timeline component and I think p:resizable will not work for these since their IDs will be dynamic.
Is it possible to attach a resizable attribute to TimelineEvent's on the components side independent of their IDs? (A ResizableTimelineEvent component that every instance is resizable without using p:resizable on the jsf side)
--
primefaces 3.4.1
primefaxes-extensions 0.6.1
primefaces 3.4.1
primefaxes-extensions 0.6.1
Yeah, p:resizable for="x" is stupid. By the way, mostly PF Extensions components have "forSelector" attribute for more then one target element. You can try to use native jQuery resizable plugin maybe.
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
-
- Information
-
Who is online
Users browsing this forum: No registered users and 18 guests