Skip to content
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

Add password as input parameter in input dialog #2852

Open
aleksey-stukalov opened this issue Apr 26, 2020 · 1 comment
Open

Add password as input parameter in input dialog #2852

aleksey-stukalov opened this issue Apr 26, 2020 · 1 comment
Assignees

Comments

@aleksey-stukalov
Copy link
Contributor

No description provided.

@Flaurite
Copy link
Contributor

This will not be fixed soon, so for any other fields it is possible to use #withField():

@Inject
private Dialogs dialogs;
@Inject
private UiComponents uiComponents;

@Subscribe
public void onInit(InitEvent event) {
    dialogs.createInputDialog(this)
            .withParameter(InputParameter.parameter("passwordField")
                    .withField(() -> {
                        PasswordField field = uiComponents.create(PasswordField.class);
                        field.setCaption("Password");
                        field.setWidth("100%");
                        return field;
                    }))
            .show();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants