Directory

← Back

NPS

Net Promoter Score widget for Vaadin

Author

Rating

Popularity

<100

Net promoter score (NPS) is a market research metric that is based on a single survey question asking respondents to rate the likelihood that they would recommend a company, product, or a service to a friend or colleague. Read more at wikipedia.org/wiki/Net_promoter_score

This widget implements the functionality to ask and collect users the feedback using the typical 0 to 10 scale.

Usage:

final NPS nps = new NPS();
add(nps);

// Get the score and remove component
nps.addValueChangeListener(e -> {
    replace(nps, 
        new Paragraph("You gave "+e.getValue()+". Thank you for your feedback."));
});

There is also a runnable Spring Boot application you can use as starting point for your own NPS collection. Find out more in GitHub repository.

Sample code

final NPS nps = new NPS();
add(nps);
nps.addValueChangeListener(e -> {
    Notification.show("Value changed from " + e.getOldValue() + " to " + e.getValue());
});

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Github Release

Released
2024-02-20
Maturity
BETA
License
Apache License 2.0

Compatibility

Framework
Vaadin 24+
Browser
N/A

NPS - Vaadin Add-on Directory

Net Promoter Score widget for Vaadin NPS - Vaadin Add-on Directory
Net promoter score (NPS) is a market research metric that is based on a single survey question asking respondents to rate the likelihood that they would recommend a company, product, or a service to a friend or colleague. Read more at [wikipedia.org/wiki/Net_promoter_score](https://en.wikipedia.org/wiki/Net_promoter_score) This widget implements the functionality to ask and collect users the feedback using the typical 0 to 10 scale. ![](https://user-images.githubusercontent.com/991105/240868160-6e823dfe-d730-432f-9a38-870a09d2646a.png) **Usage:** ``` final NPS nps = new NPS(); add(nps); // Get the score and remove component nps.addValueChangeListener(e -> { replace(nps, new Paragraph("You gave "+e.getValue()+". Thank you for your feedback.")); }); ``` There is also a runnable Spring Boot application you can use as starting point for your own NPS collection. Find out more in [GitHub repository](https://github.com/samie/nps/tree/v24/demo).
Online