Page History
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 sSummerysSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Constants SummerySummary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#ALL] Constant to be used when specifying anchoring for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#DEFAULT] Constant to be used when specifying anchoring for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#EAST] Constant to be used when specifying anchoring for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#NORTH] {td}{tr}{Constant to be used when specifying anchoring for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#SOUTH] Constant to be used when specifying anchoring for components.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#WEST] Constant to be used when specifying anchoring 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=ALL|class=node}{tr:id=name}{td}h6.ALL{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:ALL_des|text=|trigger=button}{sub-section}{sub-section:ALL_des|trigger=none|class=sIndent}ReplaceConstant to with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:ALL_snc|text=|trigger=button}{sub-section}{sub-section:be used when specifying anchoring for components. Makes the component anchored on all sides. This means that the component will keep a constant distance from all sides of the window and will grow/shrink as the window is resized.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:ALL_snc|text=|trigger=button}{sub-section}{sub-section:ALL_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:ALL_prs|text=|trigger=button}{sub-section}{sub-section:ALL_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:ALL_ret|text=|trigger=button}{sub-section}{sub-section:ALL_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ALL_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ALL_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ALL_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ALL_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:ALL_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ALL_sam|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DEFAULT|class=node}{tr:id=name}{td}h6.DEFAULT{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:DEFAULT_des|text=|trigger=button}{sub-section}{sub-section:DEFAULT_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\code:language=javascript} var form = solutionModel.newForm('mediaForm', 'example_data', 'parent_table', 'null', false, 400, 300); var strechAllDirectionsLabel = form.newLabel('Strech all directions', 10, 10, 380, 280); strechAllDirectionsLabel.background = 'red'; strechAllDirectionsLabel.anchors = SM_ANCHOR.ALL; {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DEFAULT|class=node}{tr:id=name}{td}h6.DEFAULT{td}{tr}{tr:id=des}{td}{sub-section:DEFAULT_sncdes|text=|trigger=button}{sub-section}{sub-section:DEFAULT_sncdes|trigger=none|class=sIndent}Constant Replaceto with version infobe used when specifying anchoring for components. It is equivalent to a combination of NORTH and WEST anchoring.{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:DEFAULT_prssnc|text=|trigger=button}{sub-section}{sub-section:DEFAULT_prssnc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=retprs}{td}*ReturnsParameters*\\{sub-section:DEFAULT_retprs|text=|trigger=button}{sub-section}{sub-section:DEFAULT_retprs|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=seeret}{td}*Also seeReturns*\\{sub-section:DEFAULT_seeret|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DEFAULT_seeret|trigger=none|class=sIndent}[Number]{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linksee}{td}*ExternalAlso linkssee*\\{sub-section:DEFAULT_linksee|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DEFAULT_linksee|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=samlink}{td}*SampleExternal links*\\{sub-section:DEFAULT_samlink|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DEFAULT_samlink|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:classid=lastDetailRowsam}{td}{td}{tr}{tbody}{tbody:id=EAST|class=node}{tr:id=name}{td}h6.EAST{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:EAST_des|text=|trigger=button}{sub-section}{sub-section:EAST_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:EAST_snc|text=|trigger=button}{sub-section}{sub-section:EAST_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\*Sample*\\{sub-section:DEFAULT_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DEFAULT_sam|trigger=none}{code:language=javascript} var form = solutionModel.newForm('mediaForm', 'example_data', 'parent_table', 'null', false, 400, 300); var stickToTopLeftCornerLabel = form.newLabel('Stick to top-left corner', 10, 10, 200, 100); stickToTopLeftCornerLabel.background = 'orange'; stickToTopLeftCornerLabel.anchors = SM_ANCHOR.DEFAULT; {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=EAST|class=node}{tr:id=name}{td}h6.EAST{td}{tr}{tr:id=des}{td}{sub-section:EAST_prsdes|text=|trigger=button}{sub-section}{sub-section:EAST_prsdes|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:EAST_ret|text=|trigger=button}{sub-section}{sub-section:EAST_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EAST_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EAST_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EAST_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EAST_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-showConstant to be used when specifying anchoring for components. Makes the component anchored to the right side of the window, which means that the component will keep a constant distance from the right side of the window. If WEST anchoring is also enabled, then the component will grow/shrink as the window is horizontally resized. This constant is used also for setting tab orientation on tab panels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=samsnc}{td}*SampleSince*\\{sub-section:EAST_samsnc|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EAST_samsnc|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{trbuilder-show:classpermission=lastDetailRowedit}{tdtr:id=prs}{td}{tr}{tbody}{tbody:id=NORTH|class=node}{tr:id=name}{td}h6.NORTH{td}{*Parameters*\\{sub-section:EAST_prs|text=|trigger=button}{sub-section}{sub-section:EAST_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=desret}{td}*Returns*\\{sub-section:NORTHEAST_desret|text=|trigger=button}{sub-section}{sub-section:NORTHEAST_desret|trigger=none|class=sIndent}Replace with description[Number]{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sncsee}{td}*SinceAlso see*\\{sub-section:NORTHEAST_sncsee|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NORTHEAST_sncsee|trigger=none|class=sIndent} Replace with version info{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prslink}{td}*ParametersExternal links*\\{sub-section:NORTHEAST_prslink|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NORTHEAST_prslink|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=retsam}{td}*ReturnsSample*\\{sub-section:NORTHEAST_retsam|text=|trigger=button}{sub-section}{sub-section:NORTH_ret|trigger=none|div:class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:NORTH_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NORTH_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:NORTH_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NORTH_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:NORTH_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NORTH_sam|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:class=lastDetailRow}{:EAST_sam|trigger=none}{code:language=javascript} var form = solutionModel.newForm('mediaForm', 'example_data', 'parent_table', 'null', false, 400, 300); var strechHorizontallyLabel = form.newLabel('Strech horizontally', 10, 10, 380, 140); strechHorizontallyLabel.background = 'blue'; strechHorizontallyLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST | SM_ANCHOR.EAST; var stickToBottomRightCornerLabel = form.newLabel('Stick to bottom-right corner', 190, 190, 200, 100); stickToBottomRightCornerLabel.background = 'pink'; stickToBottomRightCornerLabel.anchors = SM_ANCHOR.SOUTH | SM_ANCHOR.EAST; {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=SOUTHNORTH|class=node}{tr:id=name}{td}h6.SOUTHNORTH{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:SOUTHNORTH_des|text=|trigger=button}{sub-section}{sub-section:SOUTHNORTH_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:SOUTH_snc|text=|trigger=button}{sub-section}{sub-section:SOUTH_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:SOUTH_prs|text=|trigger=button}{sub-section}{sub-section:SOUTH_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*ReturnsConstant to be used when specifying anchoring for components. Makes the component anchored to the top side of the window, which means that the component will keep a constant distance from the top side of the window. If SOUTH anchoring is also enabled, then the component will grow/shrink as the window is vertically resized. This constant is used also for setting tab orientation on tab panels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:SOUTHNORTH_retsnc|text=|trigger=button}{sub-section}{sub-section:SOUTHNORTH_retsnc|trigger=none|class=sIndent}[Number] Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=seeprs}{td}*Also seeParameters*\\{sub-section:SOUTHNORTH_seeprs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:SOUTHNORTH_seeprs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:SOUTH_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:SOUTH_link|trigger=none}{sub-section}{div}{tr:id=ret}{td}*Returns*\\{sub-section:NORTH_ret|text=|trigger=button}{sub-section}{sub-section:NORTH_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:NORTH_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NORTH_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:NORTH_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NORTH_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:NORTH_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:NORTH_sam|trigger=none}{code:language=javascript} var form = solutionModel.newForm('mediaForm', 'example_data', 'parent_table', 'null', false, 400, 300); var strechVerticallyLabel = form.newLabel('Strech vertically', 10, 10, 190, 280); strechVerticallyLabel.background = 'green'; strechVerticallyLabel.anchors = SM_ANCHOR.WEST | SM_ANCHOR.NORTH | SM_ANCHOR.SOUTH; var stickToTopLeftCornerLabel = form.newLabel('Stick to top-left corner', 10, 10, 200, 100); stickToTopLeftCornerLabel.background = 'orange'; stickToTopLeftCornerLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST; {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=SOUTH|class=node}{tr:id=name}{td}h6.SOUTH{td}{tr}{tr:id=des}{td}{sub-section:SOUTH_des|text=|trigger=button}{sub-section}{sub-section:SOUTH_des|trigger=none|class=sIndent}Constant to be used when specifying anchoring for components. Makes the component anchored to the bottom side of the window, which means that the component will keep a constant distance from the bottom side of the window. If NORTH anchoring is also enabled, then the component will grow/shrink as the window is vertically resized. This constant is used also for setting tab orientation on tab panels.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:SOUTH_snc|text=|trigger=button}{sub-section}{sub-section:SOUTH_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:SOUTH_prs|text=|trigger=button}{sub-section}{sub-section:SOUTH_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:SOUTH_ret|text=|trigger=button}{sub-section}{sub-section:SOUTH_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:SOUTH_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:SOUTH_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:SOUTH_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:SOUTH_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:SOUTH_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:SOUTH_sam|trigger=none}{code:language=javascript} var form = solutionModel.newForm('mediaForm', 'example_data', 'parent_table', 'null', false, 400, 300); var strechVerticallyLabel = form.newLabel('Strech vertically', 10, 10, 190, 280); strechVerticallyLabel.background = 'green'; strechVerticallyLabel.anchors = SM_ANCHOR.WEST | SM_ANCHOR.NORTH | SM_ANCHOR.SOUTH; var stickToBottomRightCornerLabel = form.newLabel('Stick to bottom-right corner', 190, 190, 200, 100); stickToBottomRightCornerLabel.background = 'pink'; stickToBottomRightCornerLabel.anchors = SM_ANCHOR.SOUTH | SM_ANCHOR.EAST; {code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=WEST|class=node}{tr:id=name}{td}h6.WEST{td}{tr}{tr:id=des}{td}{sub-section:WEST_des|text=|trigger=button}{sub-section}{sub-section:WEST_des|trigger=none|class=sIndent}Constant to be used when specifying anchoring for components. Makes the component anchored to the left side of the window, which means that the component will keep a constant distance from the left side of the window. If EAST anchoring is also enabled, then the component will grow/shrink as the window is vertically resized. This constant is used also for setting tab orientation on tab panels.{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=samsnc}{td}*SampleSince*\\{sub-section:SOUTHWEST_samsnc|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:SOUTHWEST_samsnc|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=WEST|class=node}{tr:id=namesIndent} Replace with version info{sub-section}{td}h6.WEST{tdtr}{trbuilder-show}{builder-show:permission=edit}{tr:id=desprs}{td}*Parameters*\\{sub-section:WEST_desprs|text=|trigger=button}{sub-section}{sub-section:WEST_desprs|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sncret}{td}*SinceReturns*\\{sub-section:WEST_sncret|text=|trigger=button}{sub-section}{sub-section:WEST_sncret|trigger=none|class=sIndent} Replace with version info[Number]{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prssee}{td}*ParametersAlso see*\\{sub-section:WEST_prssee|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:WEST_prssee|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=retlink}{td}*ReturnsExternal links*\\{sub-section:WEST_retlink|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:WEST_retlink|trigger=none|class=sIndent}[Number]{sub-section}{div}{td}{tr}{builder-show:permission=editshow}{tr:id=seesam}{td}*Also seeSample*\\{sub-section:WEST_seesam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:WEST_seesam|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:WEST_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:WEST_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:WEST_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:WEST_sam|trigger=nonecode:language=javascript} var form = solutionModel.newForm('mediaForm', 'example_data', 'parent_table', 'null', false, 400, 300); var strechHorizontallyLabel = form.newLabel('Strech horizontally', 10, 10, 380, 140); strechHorizontallyLabel.background = 'blue'; strechHorizontallyLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST | SM_ANCHOR.EAST; var stickToTopLeftCornerLabel = form.newLabel('Stick to top-left corner', 10, 10, 200, 100); stickToTopLeftCornerLabel.background = 'orange'; stickToTopLeftCornerLabel.anchors = SM_ANCHOR.NORTH | SM_ANCHOR.WEST; {code}{sub-section}{div}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table} |
Overview
Content Tools
Activity