vaadin / framework

Vaadin 6, 7, 8 is a Java framework for modern Java web applications.
http://vaadin.com/
Other
1.78k stars 729 forks source link

Custom format feedback value in Slider (VSlider) component #10648

Open subshark opened 6 years ago

subshark commented 6 years ago

Can you add to next version of Vaadin framework custom value for feedback text? For example slider is seconds and I want see value in format hours:minutes:sec. Now only number avalaible

public void setFeedbackValue(double value) {
    feedback.setText(String.valueOf(value)); //feedback is protected, can't override
}
stale[bot] commented 6 years ago

Hello there!

It looks like this issue hasn't progressed lately. There are so many issues that we just can't deal them all within a reasonable timeframe.

There are a couple of things you could help to get things rolling on this issue (this is an automated message, so expect that some of these are already in use):

Thanks again for your contributions! Even though we haven't been able to get this issue fixed, we hope you to report your findings and enhancement ideas in the future too!

mlopezFC commented 4 years ago

Hi! .. I was taking a look to this issue, and I think that if what you want is to access the feedback internal component of VSlider, you could use JSNI as explained in this article, to set your custom value, maybe by creating an extension.

Implementing a full support for customizing the format of what is shown in the feedback from the server side could be rather difficult if we take into account the internal value with the mapping of what is wanted to be shown.