Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Showing a checkbox title and the checkbox in the same DynamicForm column?

    I have a DynamicForm which has a TextItem on the first row, and a CheckboxItem on the second row. Is it possible to eliminate the space taken by the red box, and show the title directly next to the checkbox item, both inside the first column of the form? Or are the only ways to decrease the width of the first column or create a second DynamicForm with shorter columns?

    See screenshot:

    Click image for larger version  Name:	form.png Views:	1 Size:	1.5 KB ID:	258244

    #2
    This is just showTitle:false.

    Comment


      #3
      When I set showTitle to false, the entire title disappears. How can I show the title, but without the space?

      This was my original code which has the space:

      CheckboxItem showDiff = new CheckboxItem("DiffMode");
      showDiff.setTitle("Diff Mode");
      showDiff.setTitleOrientation(TitleOrientation.LEFT);

      showDiff.setAlign(Alignment.LEFT);
      showDiff.setTitleAlign(Alignment.LEFT);
      showDiff.setWidth(100);
      showDiff.setStartRow(true);
      showDiff.setLabelAsTitle(true);
      // showDiff.setShowTitle(false);
      showDiff.setShowLabel(false);


      Comment


        #4
        Set showTitle:false, and remove your other attempts (showLabelAsTitle and showLabel settings).

        Comment


          #5
          Thanks, this worked

          Comment

          Working...
          X