Hello,
i have created a simple dynamic form with a checkboxitem on it. I need the title to be on the left side (the default) so I explicitly call the setTitleOrientation on both the form and the item to left (you can try with any option really). Although some space is left black the title orientation does not change. this is the below result and the code
i have created a simple dynamic form with a checkboxitem on it. I need the title to be on the left side (the default) so I explicitly call the setTitleOrientation on both the form and the item to left (you can try with any option really). Although some space is left black the title orientation does not change. this is the below result and the code
Code:
form = new DynamicForm(); form.setNumCols(2); CheckboxItem sponsoredUserItem = new CheckboxItem("sponsoredUserField", "Sponsored User"); sponsoredUserItem.setTitleOrientation(TitleOrientation.LEFT); DateItem dashboardUserItem = new DateItem("dashboardUserField", "Dashboard Account Anniversary"); dashboardUserItem.setCanEdit(false); dashboardUserItem.setDateFormatter(DateDisplayFormat.TOJAPANSHORTDATE); dashboardUserItem.setUseTextField(true); dashboardUserItem.setWrapTitle(false); ButtonItem refreshBtn = new ButtonItem("refreshBtn", "Refresh"); refreshBtn.setStartRow(true); refreshBtn.setEndRow(false); ButtonItem updateBtn = new ButtonItem("updateBtn", "Update"); updateBtn.setStartRow(false); updateBtn.setEndRow(true); form.setFields(dashboardUserItem, sponsoredUserItem, refreshBtn, updateBtn); form.setTitleOrientation(TitleOrientation.LEFT);
Comment