-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create HasPlaceholder interface #4068
Comments
@mvysny what for would you want to use this mixin interface for ? Even though it is very generic bit of API and works the same way for all the components, meaning that it could be thus in a mixin interface, I don't see it would add that much value. |
In Karibu Testing I'm allowing the user to filter the components also based on the placeholder. However, there is no unified interface that can return the placeholder for a component, and therefore I had to write the following function:
The A simple interface would do:
|
bumping this, as it would greatly help |
Hello, I would have this feature too. I need it because I'm rewriting part of component in a 'fluent' way (.with pattern) and all xxxFields, ComboBoxes, TextAreas implements this. It should be applied to the interfaces |
@Vinetos (and everyone else looking to have this functionality implemented, for that matter) - the interface so if you do not mind using a third-party add-on, feel free to use SuperFields while this issue is still in the works :) |
* feature: Implement HasPlaceholder. Fixes #4068 * refactoring!: Make Input implement HasPlaceholder * chore: format * chore: add copyright header * feat: InputTextElement now implements HasPlaceholder
This ticket/PR has been released with Vaadin 24.3.0.alpha6 and is also targeting the upcoming stable 24.3.0 version. |
Similar to
HasEnabled
in #3816The text was updated successfully, but these errors were encountered: