Child pages
  • ALIGNMENT

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\ 

{table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Constants Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#ACCORDION_PANEL#BOTTOM]
Constant used for creatingsetting accordionvertical panelalignment from tab panel, by setting its tabOrientationfor components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#BOTTOM#CENTER]
Constant used for setting horizontal and vertical alignment
for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#CENTER#DEFAULT]
Constant used for setting horizontal and vertical alignment
for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#DEFAULT#LEFT]
Constant used for setting horizontal andalignment verticalfor alignmentcomponents.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#LEFT#RIGHT]
Constant used for setting horizontal alignment for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#RIGHT#TOP]
Constant used for setting horizontalvertical alignment for components.{td}{tr}{tbody}{tbodytable}{tr}{td}[Number]{td}{td}[#SPLIT_HORIZONTAL]
Constant used for creating horizontal split pane from tab panel, by setting its tabOrientation.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#SPLIT_VERTICAL]
Constant used for creating vertical split pane from tab panel, by setting its tabOrientation.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#TOP]
Constant used for setting vertical alignment for components.{td}{tr}{tbody}{table}\\ 

{table:id=constant|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=ACCORDION_PANEL|class=node}{tr:id=name}{td}h6.ACCORDION_PANEL{td}{tr}{tr:id=des}{td}{sub-section:ACCORDION_PANEL_des|text=|trigger=button}{sub-section}{sub-section:ACCORDION_PANEL_des|trigger=none|class=sIndent}Constant used for creating accordion panel from tab panel, by setting its tabOrientation.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:ACCORDION_PANEL_snc|text=|trigger=button}{sub-section}{sub-section:ACCORDION_PANEL_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:ACCORDION_PANEL_prs|text=|trigger=button}{sub-section}{sub-section:ACCORDION_PANEL_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ACCORDION_PANEL_ret|text=|trigger=button}{sub-section}{sub-section:ACCORDION_PANEL_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ACCORDION_PANEL_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ACCORDION_PANEL_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ACCORDION_PANEL_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ACCORDION_PANEL_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ACCORDION_PANEL_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ACCORDION_PANEL_sam|trigger=none}{code:language=javascript}
var accordion = myForm.newTabPanel('accordion', 10, 10, 620, 460);
accordion.tabOrientation = SM_ALIGNMENT.ACCORDION_PANEL;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=BOTTOM|class=node}{tr:id=name}{td}h6.BOTTOM{td}{tr}{tr:id=des}{td}{sub-section:BOTTOM_des|text=|trigger=button}{sub-section}{sub-section:BOTTOM_des|trigger=none|class=sIndent}Constant used for setting vertical alignment for components.
It makes the text inside the component be bottom aligned vertically.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:BOTTOM_snc|text=|trigger=button}{sub-section}{sub-section:BOTTOM_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:BOTTOM_prs|text=|trigger=button}{sub-section}{sub-section:BOTTOM_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:BOTTOM_ret|text=|trigger=button}{sub-section}{sub-section:BOTTOM_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:BOTTOM_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:BOTTOM_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:BOTTOM_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:BOTTOM_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:BOTTOM_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:BOTTOM_sam|trigger=none}{code:language=javascript}
var bottomAlignedLabel = form.newLabel('BOTTOM', 520, 10, 50, 300);
bottomAlignedLabel.verticalAlignment = SM_ALIGNMENT.BOTTOM;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=CENTER|class=node}{tr:id=name}{td}h6.CENTER{td}{tr}{tr:id=des}{td}{sub-section:CENTER_des|text=|trigger=button}{sub-section}{sub-section:CENTER_des|trigger=none|class=sIndent}Constant used for setting horizontal and vertical alignment
for components. If used for horizontal alignment,
then the text of the component will be horizontally centered.
Similarly, if used for vertical alignment, then the text
of the component will be vertically centered.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:CENTER_snc|text=|trigger=button}{sub-section}{sub-section:CENTER_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:CENTER_prs|text=|trigger=button}{sub-section}{sub-section:CENTER_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:CENTER_ret|text=|trigger=button}{sub-section}{sub-section:CENTER_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CENTER_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CENTER_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CENTER_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CENTER_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CENTER_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CENTER_sam|trigger=none}{code:language=javascript}
var hCenteredLabel = form.newLabel('CENTER', 10, 40, 300, 20);
hCenteredLabel.horizontalAlignment = SM_ALIGNMENT.CENTER;
var vCenterAlignedLabel = form.newLabel('CENTER', 460, 10, 50, 300);
vCenterAlignedLabel.verticalAlignment = SM_ALIGNMENT.CENTER
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DEFAULT\\ 

{table:id=constant|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=BOTTOM|class=node}{tr:id=name}{td}h6.DEFAULTBOTTOM{td}{tr}{tr:id=des}{td}{sub-section:DEFAULTBOTTOM_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:DEFAULTBOTTOM_des|trigger=none|class=sIndent}Constant used for setting horizontalvertical andalignment verticalfor alignmentcomponents.
DEFAULT valueIt makes the alignmenttext behaveinside asthe ifcomponent itbe wasbottom notaligned changed beforevertically.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:DEFAULTBOTTOM_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:DEFAULTBOTTOM_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DEFAULTBOTTOM_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:DEFAULTBOTTOM_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DEFAULTBOTTOM_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:DEFAULTBOTTOM_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DEFAULTBOTTOM_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:DEFAULTBOTTOM_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DEFAULTBOTTOM_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:DEFAULTBOTTOM_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DEFAULTBOTTOM_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:DEFAULTBOTTOM_sam|trigger=none}{code:language=javascript}
var hLabelbottomAlignedLabel = myJSFormform.getLabelnewLabel('label_name');
if (hLabel.horizontalAlignment == SM_ALIGNMENT.LEFT) hLabel.horizontalAlignmentBOTTOM', 520, 10, 50, 300);
bottomAlignedLabel.verticalAlignment = SM_ALIGNMENT.DEFAULTBOTTOM;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=LEFTCENTER|class=node}{tr:id=name}{td}h6.LEFTCENTER{td}{tr}{tr:id=des}{td}{sub-section:LEFTCENTER_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:LEFTCENTER_des|trigger=none|class=sIndent}ConstantsIndent}Constant used for setting horizontal and vertical alignment
for components. If used for setting horizontal alignment,
then the text of the component will be horizontally centered.
Similarly, if used for components.vertical Italignment, makesthen the text
insideof the component will be leftvertically aligned horizontallycentered.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:LEFTCENTER_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:LEFTCENTER_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:LEFTCENTER_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:LEFTCENTER_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:LEFTCENTER_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:LEFTCENTER_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:LEFTCENTER_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:LEFTCENTER_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:LEFTCENTER_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:LEFTCENTER_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:LEFTCENTER_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:LEFTCENTER_sam|trigger=none}{code:language=javascript}
var leftAlignedLabel:language=javascript}
var hCenteredLabel = form.newLabel('CENTER', 10, 40, 300, 20);
hCenteredLabel.horizontalAlignment = SM_ALIGNMENT.CENTER;
var vCenterAlignedLabel = form.newLabel('LEFTCENTER', 10460, 10, 30050, 20300);
leftAlignedLabelvCenterAlignedLabel.horizontalAlignmentverticalAlignment = SM_ALIGNMENT.LEFT;CENTER
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=RIGHTDEFAULT|class=node}{tr:id=name}{td}h6.RIGHTDEFAULT{td}{tr}{tr:id=des}{td}{sub-section:RIGHTDEFAULT_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:RIGHTDEFAULT_des|trigger=none|class=sIndent}Constant used for setting horizontal alignmentand forvertical componentsalignment. ItDEFAULT value makes the textalignment behave insideas theif componentit bewas rightnot alignedchanged verticallybefore.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:RIGHT_snc|text=DEFAULT_snc|trigger=button|text=}{sub-section}{sub-section:RIGHTDEFAULT_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:RIGHTDEFAULT_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:RIGHTDEFAULT_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:RIGHTDEFAULT_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:RIGHTDEFAULT_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:RIGHTDEFAULT_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:RIGHTDEFAULT_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:RIGHTDEFAULT_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:RIGHTDEFAULT_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:RIGHTDEFAULT_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:RIGHTDEFAULT_sam|trigger=none}{code:language=javascript}
var rightAlignedLabelhLabel = formmyJSForm.newLabelgetLabel('RIGHT', 10, 70, 300, 20);
rightAlignedLabellabel_name');
if (hLabel.horizontalAlignment == SM_ALIGNMENT.LEFT) hLabel.horizontalAlignment = SM_ALIGNMENT.RIGHTDEFAULT;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=SPLIT_HORIZONTALLEFT|class=node}{tr:id=name}{td}h6.SPLIT_HORIZONTALLEFT{td}{tr}{tr:id=des}{td}{sub-section:SPLITLEFT_HORIZONTAL_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:SPLIT_HORIZONTALLEFT_des|trigger=none|class=sIndent}Constant used for creatingsetting horizontal split pane from tab panel, by setting its tabOrientation alignment for components.
It makes the text inside the component be left aligned horizontally.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:SPLIT_HORIZONTALLEFT_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:SPLITLEFT_HORIZONTAL_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:SPLITLEFT_HORIZONTAL_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:SPLIT_HORIZONTALLEFT_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:SPLITLEFT_HORIZONTAL_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:SPLIT_HORIZONTALLEFT_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:SPLITLEFT_HORIZONTAL_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:SPLITLEFT_HORIZONTAL_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:SPLIT_HORIZONTALLEFT_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:SPLITLEFT_HORIZONTAL_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:SPLITLEFT_HORIZONTAL_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:SPLITLEFT_HORIZONTAL_sam|trigger=none}{code:language=javascript}
var splitPaneleftAlignedLabel = myFormform.newTabPanelnewLabel('splitPaneLEFT', 10, 10, 620300, 46020);
splitPaneleftAlignedLabel.tabOrientationhorizontalAlignment = SM_ALIGNMENT.SPLIT_HORIZONTALLEFT;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=SPLIT_VERTICALRIGHT|class=node}{tr:id=name}{td}h6.SPLIT_VERTICALRIGHT{td}{tr}{tr:id=des}{td}{sub-section:SPLITRIGHT_VERTICAL_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:SPLITRIGHT_VERTICAL_des|trigger=none|class=sIndent}Constant used for creating vertical split pane from tab panel, by setting its tabOrientation setting horizontal alignment for components.
It makes the text inside the component be right aligned vertically.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:SPLITRIGHT_VERTICAL_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:SPLIT_VERTICALRIGHT_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:SPLITRIGHT_VERTICAL_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:SPLITRIGHT_VERTICAL_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:SPLITRIGHT_VERTICAL_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:SPLITRIGHT_VERTICAL_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:SPLITRIGHT_VERTICAL_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:SPLITRIGHT_VERTICAL_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:SPLIT_VERTICALRIGHT_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:SPLITRIGHT_VERTICAL_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:SPLIT_VERTICALRIGHT_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:SPLITRIGHT_VERTICAL_sam|trigger=none}{code:language=javascript}
var splitPanerightAlignedLabel = myFormform.newTabPanelnewLabel('splitPaneRIGHT', 10, 1070, 620300, 46020);
splitPanerightAlignedLabel.tabOrientationhorizontalAlignment = SM_ALIGNMENT.SPLIT_VERTICALRIGHT;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=TOP|class=node}{tr:id=name}{td}h6.TOP{td}{tr}{tr:id=des}{td}{sub-section:TOP_des|texttrigger=button|triggertext=button}{sub-section}{sub-section:TOP_des|trigger=none|class=sIndent}Constant used for setting vertical alignment for components.
It makes the text inside the component be top aligned vertically.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:TOP_snc|texttrigger=button|triggertext=button}{sub-section}{sub-section:TOP_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:TOP_prs|texttrigger=button|triggertext=button}{sub-section}{sub-section:TOP_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:TOP_ret|texttrigger=button|triggertext=button}{sub-section}{sub-section:TOP_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:TOP_see|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:TOP_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:TOP_link|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:TOP_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:TOP_sam|texttrigger=button|triggertext=button}{sub-section}{div:class=sIndent}{sub-section:TOP_sam|trigger=none}{code:language=javascript}
var topAlignedLabel = form.newLabel('TOP', 400, 10, 50, 300);
topAlignedLabel.verticalAlignment = SM_ALIGNMENT.TOP;
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}