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:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Constants Summary{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] 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:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=5E3D478F94BEAC4B-1AB5CDC7-429C4AD4-B1D39F69-574C321A42E33E527492D286}{tr:id=name}{td}h6.ALL{td}{tr}{tr:id=des}{td}{sub-section:5E3D478F94BEAC4B-1AB5CDC7-429C4AD4-B1D39F69-574C321A42E33E527492D286_des|text=|trigger=button}{sub-section}{sub-section:5E3D478F94BEAC4B-1AB5CDC7-429C4AD4-B1D39F69-574C321A42E33E527492D286_des|trigger=none|class=sIndent}Constant to 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=prs}{td}*Parameters*\\{sub-section:5E3D478F94BEAC4B-1AB5CDC7-429C4AD4-B1D39F69-574C321A42E33E527492D286_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5E3D478F94BEAC4B-1AB5CDC7-429C4AD4-B1D39F69-574C321A42E33E527492D286_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5E3D478F94BEAC4B-1AB5CDC7-429C4AD4-B1D39F69-574C321A42E33E527492D286_ret|text=|trigger=button}{sub-section}{sub-section:5E3D478F94BEAC4B-1AB5CDC7-429C4AD4-B1D39F69-574C321A42E33E527492D286_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5E3D478F94BEAC4B-1AB5CDC7-429C4AD4-B1D39F69-574C321A42E33E527492D286_see|text=|trigger=button}{sub-section}{sub-section:5E3D478F94BEAC4B-1AB5CDC7-429C4AD4-B1D39F69-574C321A42E33E527492D286_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5E3D478F94BEAC4B-1AB5CDC7-429C4AD4-B1D39F69-574C321A42E33E527492D286_see|text=|trigger=button}{sub-section}{sub-section:5E3D478F94BEAC4B-1AB5CDC7-429C4AD4-B1D39F69-574C321A42E33E527492D286_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5E3D478F94BEAC4B-1AB5CDC7-429C4AD4-B1D39F69-574C321A42E33E527492D286_sam|text=|trigger=button}{sub-section}{sub-section:5E3D478F94BEAC4B-1AB5CDC7-429C4AD4-B1D39F69-574C321A42E33E527492D286_sam|class=sIndent|trigger=none}{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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=85C9ECA6EA64B009-2780AF19-478D4DC5-B1E4A048-B8B83ABD359A069AAC6E0AE9}{tr:id=name}{td}h6.DEFAULT{td}{tr}{tr:id=des}{td}{sub-section:85C9ECA6EA64B009-2780AF19-478D4DC5-B1E4A048-B8B83ABD359A069AAC6E0AE9_des|text=|trigger=button}{sub-section}{sub-section:85C9ECA6EA64B009-2780AF19-478D4DC5-B1E4A048-B8B83ABD359A069AAC6E0AE9_des|trigger=none|class=sIndent}Constant to be used when specifying anchoring for components. It is equivalent to a combination of NORTH and WEST anchoring.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:85C9ECA6EA64B009-2780AF19-478D4DC5-B1E4A048-B8B83ABD359A069AAC6E0AE9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:85C9ECA6EA64B009-2780AF19-478D4DC5-B1E4A048-B8B83ABD359A069AAC6E0AE9_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:85C9ECA6EA64B009-2780AF19-478D4DC5-B1E4A048-B8B83ABD359A069AAC6E0AE9_ret|text=|trigger=button}{sub-section}{sub-section:85C9ECA6EA64B009-2780AF19-478D4DC5-B1E4A048-B8B83ABD359A069AAC6E0AE9_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:85C9ECA6EA64B009-2780AF19-478D4DC5-B1E4A048-B8B83ABD359A069AAC6E0AE9_see|text=|trigger=button}{sub-section}{sub-section:85C9ECA6EA64B009-2780AF19-478D4DC5-B1E4A048-B8B83ABD359A069AAC6E0AE9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:85C9ECA6EA64B009-2780AF19-478D4DC5-B1E4A048-B8B83ABD359A069AAC6E0AE9_see|text=|trigger=button}{sub-section}{sub-section:85C9ECA6EA64B009-2780AF19-478D4DC5-B1E4A048-B8B83ABD359A069AAC6E0AE9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:85C9ECA6EA64B009-2780AF19-478D4DC5-B1E4A048-B8B83ABD359A069AAC6E0AE9_sam|text=|trigger=button}{sub-section}{sub-section:85C9ECA6EA64B009-2780AF19-478D4DC5-B1E4A048-B8B83ABD359A069AAC6E0AE9_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3CDD25F2A6991F06-76CE1147-418A470A-8F94B789-BBF84D8F45D44C48A46CE201}{tr:id=name}{td}h6.EAST{td}{tr}{tr:id=des}{td}{sub-section:3CDD25F2A6991F06-76CE1147-418A470A-8F94B789-BBF84D8F45D44C48A46CE201_des|text=|trigger=button}{sub-section}{sub-section:3CDD25F2A6991F06-76CE1147-418A470A-8F94B789-BBF84D8F45D44C48A46CE201_des|trigger=none|class=sIndent}Constant 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=prs}{td}*Parameters*\\{sub-section:3CDD25F2A6991F06-76CE1147-418A470A-8F94B789-BBF84D8F45D44C48A46CE201_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3CDD25F2A6991F06-76CE1147-418A470A-8F94B789-BBF84D8F45D44C48A46CE201_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:3CDD25F2A6991F06-76CE1147-418A470A-8F94B789-BBF84D8F45D44C48A46CE201_ret|text=|trigger=button}{sub-section}{sub-section:3CDD25F2A6991F06-76CE1147-418A470A-8F94B789-BBF84D8F45D44C48A46CE201_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3CDD25F2A6991F06-76CE1147-418A470A-8F94B789-BBF84D8F45D44C48A46CE201_see|text=|trigger=button}{sub-section}{sub-section:3CDD25F2A6991F06-76CE1147-418A470A-8F94B789-BBF84D8F45D44C48A46CE201_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3CDD25F2A6991F06-76CE1147-418A470A-8F94B789-BBF84D8F45D44C48A46CE201_see|text=|trigger=button}{sub-section}{sub-section:3CDD25F2A6991F06-76CE1147-418A470A-8F94B789-BBF84D8F45D44C48A46CE201_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3CDD25F2A6991F06-76CE1147-418A470A-8F94B789-BBF84D8F45D44C48A46CE201_sam|text=|trigger=button}{sub-section}{sub-section:3CDD25F2A6991F06-76CE1147-418A470A-8F94B789-BBF84D8F45D44C48A46CE201_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=51AB293305D26B98-FED06B43-42B048B5-992DAF6E-52C174EC70914F1C88B51092}{tr:id=name}{td}h6.NORTH{td}{tr}{tr:id=des}{td}{sub-section:51AB293305D26B98-FED06B43-42B048B5-992DAF6E-52C174EC70914F1C88B51092_des|text=|trigger=button}{sub-section}{sub-section:51AB293305D26B98-FED06B43-42B048B5-992DAF6E-52C174EC70914F1C88B51092_des|trigger=none|class=sIndent}Constant 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=prs}{td}*Parameters*\\{sub-section:51AB293305D26B98-FED06B43-42B048B5-992DAF6E-52C174EC70914F1C88B51092_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:51AB293305D26B98-FED06B43-42B048B5-992DAF6E-52C174EC70914F1C88B51092_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:51AB293305D26B98-FED06B43-42B048B5-992DAF6E-52C174EC70914F1C88B51092_ret|text=|trigger=button}{sub-section}{sub-section:51AB293305D26B98-FED06B43-42B048B5-992DAF6E-52C174EC70914F1C88B51092_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:51AB293305D26B98-FED06B43-42B048B5-992DAF6E-52C174EC70914F1C88B51092_see|text=|trigger=button}{sub-section}{sub-section:51AB293305D26B98-FED06B43-42B048B5-992DAF6E-52C174EC70914F1C88B51092_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:51AB293305D26B98-FED06B43-42B048B5-992DAF6E-52C174EC70914F1C88B51092_see|text=|trigger=button}{sub-section}{sub-section:51AB293305D26B98-FED06B43-42B048B5-992DAF6E-52C174EC70914F1C88B51092_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:51AB293305D26B98-FED06B43-42B048B5-992DAF6E-52C174EC70914F1C88B51092_sam|text=|trigger=button}{sub-section}{sub-section:51AB293305D26B98-FED06B43-42B048B5-992DAF6E-52C174EC70914F1C88B51092_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E2C068F783D7A8A0-7B65A144-408D46BD-80638D82-63ECC58C9B4116AD08C62491}{tr:id=name}{td}h6.SOUTH{td}{tr}{tr:id=des}{td}{sub-section:E2C068F783D7A8A0-7B65A144-408D46BD-80638D82-63ECC58C9B4116AD08C62491_des|text=|trigger=button}{sub-section}{sub-section:E2C068F783D7A8A0-7B65A144-408D46BD-80638D82-63ECC58C9B4116AD08C62491_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=prs}{td}*Parameters*\\{sub-section:E2C068F783D7A8A0-7B65A144-408D46BD-80638D82-63ECC58C9B4116AD08C62491_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E2C068F783D7A8A0-7B65A144-408D46BD-80638D82-63ECC58C9B4116AD08C62491_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:E2C068F783D7A8A0-7B65A144-408D46BD-80638D82-63ECC58C9B4116AD08C62491_ret|text=|trigger=button}{sub-section}{sub-section:E2C068F783D7A8A0-7B65A144-408D46BD-80638D82-63ECC58C9B4116AD08C62491_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E2C068F783D7A8A0-7B65A144-408D46BD-80638D82-63ECC58C9B4116AD08C62491_see|text=|trigger=button}{sub-section}{sub-section:E2C068F783D7A8A0-7B65A144-408D46BD-80638D82-63ECC58C9B4116AD08C62491_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E2C068F783D7A8A0-7B65A144-408D46BD-80638D82-63ECC58C9B4116AD08C62491_see|text=|trigger=button}{sub-section}{sub-section:E2C068F783D7A8A0-7B65A144-408D46BD-80638D82-63ECC58C9B4116AD08C62491_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E2C068F783D7A8A0-7B65A144-408D46BD-80638D82-63ECC58C9B4116AD08C62491_sam|text=|trigger=button}{sub-section}{sub-section:E2C068F783D7A8A0-7B65A144-408D46BD-80638D82-63ECC58C9B4116AD08C62491_sam|class=sIndent|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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2EB62983373879D5-55A58F34-401441BA-A30F9C9A-B30E10C687A46401B00AC1C5}{tr:id=name}{td}h6.WEST{td}{tr}{tr:id=des}{td}{sub-section:2EB62983373879D5-55A58F34-401441BA-A30F9C9A-B30E10C687A46401B00AC1C5_des|text=|trigger=button}{sub-section}{sub-section:2EB62983373879D5-55A58F34-401441BA-A30F9C9A-B30E10C687A46401B00AC1C5_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:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:2EB62983373879D5-55A58F34-401441BA-A30F9C9A-B30E10C687A46401B00AC1C5_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2EB62983373879D5-55A58F34-401441BA-A30F9C9A-B30E10C687A46401B00AC1C5_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:2EB62983373879D5-55A58F34-401441BA-A30F9C9A-B30E10C687A46401B00AC1C5_ret|text=|trigger=button}{sub-section}{sub-section:2EB62983373879D5-55A58F34-401441BA-A30F9C9A-B30E10C687A46401B00AC1C5_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2EB62983373879D5-55A58F34-401441BA-A30F9C9A-B30E10C687A46401B00AC1C5_see|text=|trigger=button}{sub-section}{sub-section:2EB62983373879D5-55A58F34-401441BA-A30F9C9A-B30E10C687A46401B00AC1C5_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2EB62983373879D5-55A58F34-401441BA-A30F9C9A-B30E10C687A46401B00AC1C5_see|text=|trigger=button}{sub-section}{sub-section:2EB62983373879D5-55A58F34-401441BA-A30F9C9A-B30E10C687A46401B00AC1C5_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2EB62983373879D5-55A58F34-401441BA-A30F9C9A-B30E10C687A46401B00AC1C5_sam|text=|trigger=button}{sub-section}{sub-section:2EB62983373879D5-55A58F34-401441BA-A30F9C9A-B30E10C687A46401B00AC1C5_sam|class=sIndent|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 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}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table} |
Overview
Content Tools
Activity