align

the alignment of the widget within the parent container

string align;

Values

  • "left", "right", "center"
    for the x align
  • "top", "bottom", "middle"
    for the y align
  • "absolute"
    for the absolute align
  • Example

    //center align
    { align:"center,middle", body:{ view:"datepicker", width:200 }},
    //bottom-right corner
    { align:"bottom,right", body:{ view:"datepicker", width:200 }},
    //specific padding
    { align:"absolute", left:30, top:30, bottom:60, body:{ view:"datepicker", width:200 }}

    Related samples

    See also
    Back to top