Announcement

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

    DynamicForm not spanning over cols for buttons/blurbs?

    SC8.0

    We are trying to get the buttons and the text all on a single line. Basically to act similarly to how the navigation buttons work on the Calendar component.

    However, the below code seems unable to do that. Is there an constraint that buttons and blurbs cannot be on the same line as other items? If so, any alternatives?

    Code:
    isc.DynamicForm.create({
        ID: "boundForm",
        numCols: 8,
        fields: [
    			 {name: "back", type: "button"}
    			,{name: "range", type: "blurb", defaultValue: "hello"}
    			,{name: "range2", type: "blurb", defaultValue: "hello2"}
    			,{name: "forward", type: "button"}
    		    ]
    });

    #2
    Look at the defaults for startRow and endRow for ButtonItems.

    Comment


      #3
      ah, thanks for pointing those out.

      It still had a strange problem with the blurbs but I decided to change them to static text instead and that appeared to work out

      Code:
      isc.DynamicForm.create({
          ID: "boundForm",
          numCols: 8,
          fields: [
      			 {name: "back", type: "button", startRow: true, endRow: false }
                              ,{name: "range", type: "staticText", showTitle: false, defaultValue: "hello"}
      			,{name: "range2", type: "staticText", showTitle: false, defaultValue: "hello2"}			
      			,{name: "forward", type: "button", startRow: false, endRow: true}
      		    ]
      });

      Comment

      Working...
      X