Thanks. But it still generates JS script. Right? We need a lightweight without JS script to place it e.g. in DataTable column. Just an output, like all h:output*. Otherwise there are performance problems with big tables, like p:select* if you have 100+ such selects on a page.
And we need:
- Tooltip (title) displaying the same labelTemplate on mouseover. We show e.g. progress bars in table column (hit list after search) with title "Relevance {value}%".
- labelPosition ("left" | "top" | "right" | "bottom" | "middle" (default)).
New component pe:statusBar
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
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Added displayOnly attribute not to render script, label position is easy to customize with css and no action taken for tooltip stuff. Maybe for future for p:progressBar as it doesn't have high priority right now.
Great, thanks for the fast response! Tooltip is missing What is about to render "title" per default, similar what you already do:
This is just one line of code. Could you add it please and save our life? Thanks again.
Code: Select all
if(labelTemplate != null && value != 0) {
// render style
...
String label = labelTemplate.replaceAll("\\{value\\}", String.valueOf(value));
writer.write(label);
writer.writeAttribute("title", label, null); // this line is new
}
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
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Why do we need to display same text both on label and on tooltip? Shouldn't tooltip provide advisory information?
My mistake. My use case - no label, only tooltip. It makes sence because progress bar is too small within table column. Maybe a new attribute "onlyTooltip" (true | false)? If true - no label is shown, only tooltip.
If it's too time expensive for you, forget this post. Thanks.
If it's too time expensive for you, forget this post. Thanks.
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
Like this
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
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I've taken a note about this, I think it would be useful for sure, will give an update today or tomorrow. Thanks for the feedback Oleg.
Thank you too, Cagatay! We will remove started work on pe:outputProgressBar. No needs in this comp. Thanks again.
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
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Yes, let's not work on things that overlap too much.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 25 guests