Hi,
I'm having one form and it has two submit items, submitItem and ResetItem. When i set these items to form, they are displaying in two different rows. But i want them in single row.
I know one way to achieve this ie., instead of taking submit items, by taking HLayout with two IButtons and adding HLayout to the main panel after form.
But i want to achieve this with SubmitItems only. I tried couple of options but no luck. Is there a way to display them in single row and align them to center?
1) I've got solution to place them in single row in another post but unable to center them to form. I'm using like below:
btnSubmit.setStartRow(true);
btnSubmit.setEndRow(false);
....
btnReset.setStartRow(false);
btnReset.setEndRow(true);
....
form.setItems(btnSubmit,btnReset);
....
PFA screenshot attached.
2) how to auto adjust label width in the form? In the screenshot, deploymentType displayed in two lines.
I'm having one form and it has two submit items, submitItem and ResetItem. When i set these items to form, they are displaying in two different rows. But i want them in single row.
I know one way to achieve this ie., instead of taking submit items, by taking HLayout with two IButtons and adding HLayout to the main panel after form.
But i want to achieve this with SubmitItems only. I tried couple of options but no luck. Is there a way to display them in single row and align them to center?
1) I've got solution to place them in single row in another post but unable to center them to form. I'm using like below:
btnSubmit.setStartRow(true);
btnSubmit.setEndRow(false);
....
btnReset.setStartRow(false);
btnReset.setEndRow(true);
....
form.setItems(btnSubmit,btnReset);
....
PFA screenshot attached.
2) how to auto adjust label width in the form? In the screenshot, deploymentType displayed in two lines.
Comment