Announcement

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

    FormItem styling

    Hello,

    1) There is a FormItem.setAlign(Alignment align) but no setVAlign(VerticalAligment)?
    Is it missing or is there another way to align formitems (e.g. when having a rowspan > 1) to set valign="top" of the item ?


    2) On some forms and preferably only some of that form's items I wish to control padding-left and padding-right.
    It's easy to achieve this by adding this in the CSS
    Code:
    .formCell {
    	padding-left:10px;
    	padding-right:10px;
    }
    but this impacts every form and every cell. I would like to have control about the properties in Java and set it on only some forms.

    In the JS code, I find these vars on FormItem
    Code:
    var paddingLeft = isc.Element._getLeftPadding(cellStyle, true);
    var paddingRight = isc.Element._getRightPadding(cellStyle, true);
    can I set these from SmartGWT java code?


    TIA

    #2
    1. You can't current vAlign in the middle of a rowSpan - rowSpanning is designed to allow items such as TextAreaItem to fill space

    2. Use FormItem.setCellStyle() to change the cell applied to the cell as a whole

    Comment

    Working...
    X