I’m trying to create an inputDialogBox and for one of the fields, I would like it to be a Rich TextArea, but I don’t believe that the InputParameter.stringParameter() allows you to specify the length and width of the textbox.
Is it possible or would I have to create my own custom screen for that?
Thanks.
Hello!
You can use:
InputParameter.parameter("richTextArea").withField()
Here you can create any field with “width” and other attributes:
@Inject
private Dialogs dialogs;
@Inject
protected UiComponents uiComponents;
...
InputDialog inputDialog = dialogs.createInputDialog(this)
.withParameters(
InputParameter.parameter("richTextArea")
.withField(() -> {
RichTextArea richTextArea = uiComponents.create(RichTextArea.NAME);
richTextArea.setCaption("Rich Text Area");
richTextArea.setWidth("250px");
return richTextArea;
}))
.show();
Thank you so much. It worked.