Constants Summary | |
---|---|
Number | #ACCORDION_PANEL Constant used for creating accordion panel from tab panel, by setting its tabOrientation. |
Number | #BOTTOM Constant used for setting vertical alignment for components. |
Number | #CENTER Constant used for setting horizontal and vertical alignment for components. |
Number | #DEFAULT Constant used for setting horizontal and vertical alignment. |
Number | #LEFT Constant used for setting horizontal alignment for components. |
Number | #RIGHT Constant used for setting horizontal alignment for components. |
Number | #SPLIT_HORIZONTAL Constant used for creating horizontal split pane from tab panel, by setting its tabOrientation. |
Number | #SPLIT_VERTICAL Constant used for creating vertical split pane from tab panel, by setting its tabOrientation. |
Number | #TOP Constant used for setting vertical alignment for components. |
Constants Details |
---|
ACCORDION_PANEL |
Constant used for creating accordion panel from tab panel, by setting its tabOrientation. |
Returns Number |
Samplevar accordion = myForm.newTabPanel('accordion', 10, 10, 620, 460); accordion.tabOrientation = SM_ALIGNMENT.ACCORDION_PANEL; |
BOTTOM |
Constant used for setting vertical alignment for components. It makes the text inside the component be bottom aligned vertically. |
Returns Number |
Samplevar bottomAlignedLabel = form.newLabel('BOTTOM', 520, 10, 50, 300); bottomAlignedLabel.verticalAlignment = SM_ALIGNMENT.BOTTOM; |
CENTER |
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. |
Returns Number |
Samplevar 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 |
DEFAULT |
Constant used for setting horizontal and vertical alignment. DEFAULT value makes the alignment behave as if it was not changed before. |
Returns Number |
Samplevar hLabel = myJSForm.getLabel('label_name'); if (hLabel.horizontalAlignment == SM_ALIGNMENT.LEFT) hLabel.horizontalAlignment = SM_ALIGNMENT.DEFAULT; |
LEFT |
Constant used for setting horizontal alignment for components. It makes the text inside the component be left aligned horizontally. |
Returns Number |
Samplevar leftAlignedLabel = form.newLabel('LEFT', 10, 10, 300, 20); leftAlignedLabel.horizontalAlignment = SM_ALIGNMENT.LEFT; |
RIGHT |
Constant used for setting horizontal alignment for components. It makes the text inside the component be right aligned vertically. |
Returns Number |
Samplevar rightAlignedLabel = form.newLabel('RIGHT', 10, 70, 300, 20); rightAlignedLabel.horizontalAlignment = SM_ALIGNMENT.RIGHT; |
SPLIT_HORIZONTAL |
Constant used for creating horizontal split pane from tab panel, by setting its tabOrientation. |
Returns Number |
Samplevar splitPane = myForm.newTabPanel('splitPane', 10, 10, 620, 460); splitPane.tabOrientation = SM_ALIGNMENT.SPLIT_HORIZONTAL; |
SPLIT_VERTICAL |
Constant used for creating vertical split pane from tab panel, by setting its tabOrientation. |
Returns Number |
Samplevar splitPane = myForm.newTabPanel('splitPane', 10, 10, 620, 460); splitPane.tabOrientation = SM_ALIGNMENT.SPLIT_VERTICAL; |
TOP |
Constant used for setting vertical alignment for components. It makes the text inside the component be top aligned vertically. |
Returns Number |
Samplevar topAlignedLabel = form.newLabel('TOP', 400, 10, 50, 300); topAlignedLabel.verticalAlignment = SM_ALIGNMENT.TOP; |