Child pages
  • ALIGNMENT

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table Cell (td)
Number

...

DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.
Enter additional information related to this 'class' inside the {div} macro with 'id=description'
Divcache
styleindexdisplay:none

...

iddescription

...

padding0px
width80px

...

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Constants Summary

...

Table Cell (td)
Number

...

true
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClient

servoy sSummary12%30%58%height: 30px;3Constants SummaryConstant used for setting vertical alignment for components.

...

Constant used for setting horizontal and vertical alignment

...

for components.

...

Table Cell (td)
Number

...

Table Cell (td)
Number

...

Constant used for setting horizontal and vertical alignment.

...

...

Table Cell (td)
Number

...

Constant used for setting horizontal alignment for components.

...

...

Table Cell (td)
Number

...

Constant used for setting horizontal alignment for components.

...

Constant used for setting vertical alignment for components.

...

...

constant

...

servoy sDetail

...

padding0px
width100%

...

2100%height:30px

...

colspan1

...

2Constants Details

...

BOTTOM

...

name

...

BOTTOM

...

des

...

sIndent
Constant used for setting vertical alignment for components.

...


It makes the text inside the component be bottom aligned vertically.

...

ret

...

Returns

...

sIndentclients

...

Supported Clients

sIndent

...

SmartClient,WebClient,NGClientsam

...

classlastDetailRow

...

idCENTER
Table Row (tr)
idname
Table Cell (td)
CENTER
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
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.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
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

...

classlastDetailRow

...

idDEFAULT
Table Row (tr)
idname
Table Cell (td)
DEFAULT
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Constant used for setting horizontal and vertical alignment. DEFAULT value makes the alignment behave as if it was not changed before.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var hLabel = myJSForm.getLabel('label_name');
if (hLabel.horizontalAlignment == SM_ALIGNMENT.LEFT) hLabel.horizontalAlignment = SM_ALIGNMENT.DEFAULT;

...

classlastDetailRow

...

idLEFT
Table Row (tr)
idname
Table Cell (td)
LEFT
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Constant used for setting horizontal alignment for components.
It makes the text inside the component be left aligned horizontally.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var leftAlignedLabel = form.newLabel('LEFT', 10, 10, 300, 20);
leftAlignedLabel.horizontalAlignment = SM_ALIGNMENT.LEFT;

...

classlastDetailRow

...

idRIGHT
Table Row (tr)
idname
Table Cell (td)
RIGHT
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Constant used for setting horizontal alignment for components.
It makes the text inside the component be right aligned vertically.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var rightAlignedLabel = form.newLabel('RIGHT', 10, 70, 300, 20);
rightAlignedLabel.horizontalAlignment = SM_ALIGNMENT.RIGHT;

...

classlastDetailRow

...

idTOP
Table Row (tr)
idname
Table Cell (td)
TOP
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Constant used for setting vertical alignment for components.
It makes the text inside the component be top aligned vertically.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var topAlignedLabel = form.newLabel('TOP', 400, 10, 50, 300);
topAlignedLabel.verticalAlignment = SM_ALIGNMENT.TOP;

...

classlastDetailRow

...

Sample

...

classsIndent

...

Code Block
languagejavascript
var bottomAlignedLabel = form.newLabel('BOTTOM', 520, 10, 50, 300);
bottomAlignedLabel.verticalAlignment = SM_ALIGNMENT.BOTTOM;
sIdentjavascriptlastDetailRowCENTERname

CENTER

dessIndent
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.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
DEFAULTname

DEFAULT

dessIndent
Constant used for setting horizontal and vertical alignment. DEFAULT value makes the alignment behave as if it was not changed before.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
LEFTname

LEFT

dessIndent
Constant used for setting horizontal alignment for components.
It makes the text inside the component be left aligned horizontally.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
RIGHTname

RIGHT

dessIndent
Constant used for setting horizontal alignment for components.
It makes the text inside the component be right aligned vertically.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
TOPname

TOP

dessIndent
Constant used for setting vertical alignment for components.
It makes the text inside the component be top aligned vertically.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow