Child pages
  • MenuBar

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 SOURC-->SOURCE{hidden}
\\ 

{table:id=|class=servoy sSummery}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summery{th}{tr}{tbody}{tr}{td}[Menu]{td}{td}[#addMenu]\(\[index\])
Add the menu at the selected index (starting at 0) or add it at the end (empty).{td}{tr}{tbody}{tbody}{tr}{td}[Menu]{td}{td}[#getMenu]\(index)
Get the menu at the selected index (starting at 0).{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getMenuCount]\()
Get the number of (top level) menu's.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getMenuIndexByText]\(menuName)
Retrieve the index of the item by text.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#removeAllMenus]\()
Remove all menus from the menubar.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#removeMenu]\(index 1, \[index 2-n\])
Remove the menu(s) at the selected index/indices.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#reset]\()
Reset the menubar to the default.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setVisible]\(visible)
Show/hide the menu bar{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#validate]\()
Use this when your add/remove/edit operation won't refresh.{td}{tr}{tbody}{table}\\ 

{table:id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=addMenu|class=node}{tr:id=name}{td}h6.addMenu{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Menu]{span}{span:id=iets|style=float: left; font-weight: bold;}addMenu{span}{span:id=iets|style=float: left;}\(\[index\]){span}{td}{tr}{tr:id=des}{td}Add the menu at the selected index (starting at 0) or add it at the end (empty).{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\ \[index\]
{td}{tr}{tr:id=ret}{td}*Returns*\\ [Menu]{td}{tr}{tr:id=seesam}{td}*Also seeSample*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
// Note: method addMenu only works in the smart client.

// Add the menu at the selected index (starting at 0) or add it at the end (empty).
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getMenu|class=node}{tr:id=name}{td}h6.getMenu{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Menu]{span}{span:id=iets|style=float: left; font-weight: bold;}getMenu{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}Get the menu at the selected index (starting at 0).{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\index
{td}{tr}{tr:id=ret}{td}*Returns*\\[Menu]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
// Note: method getMenu only works in the smart client.

// Get the menu at the selected index (starting at 0).
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getMenuCount|class=node}{tr:id=name}{td}h6.getMenuCount{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getMenuCount{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}Get the number of (top level) menu's.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\[Number]{td}{tr}{tr:id=see}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div}{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
code:language=javascript}
// Note: method getMenuCountaddMenu only works in the smart client.

// Get the number of (top level) menu's.

// Add the menu at the selected index (starting at 0) or add it at the end (empty).
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getMenuIndexByTextgetMenu|class=node}{tr:id=name}{td}h6.getMenuIndexByTextgetMenu{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[NumberMenu]{span}{span:id=iets|style=float: left; font-weight: bold;}getMenuIndexByTextgetMenu{span}{span:id=iets|style=float: left;}\(menuNameindex){span}{td}{tr}{tr:id=des}{td}RetrieveGet the index of the item by text.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version infomenu at the selected index (starting at 0).{td}{tr}{tr:id=prs}{td}*Parameters*\\menuNameindex
{td}{tr}{tr:id=ret}{td}*Returns*\\ [NumberMenu]{td}{tr}{tr:id=seesam}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External linksSample*\\{div:class=sIndent=sIndent}{code:language=javascript}
// Note: method getMenu only works in the smart client.

// Get the menu at the selected index (starting at 0).
{code}{div}{td}{tr}{tr:id=samclass=lastDetailRow}{td}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
// Note: method getMenuIndexByText only works in the smart client.

// Retrieve the index of the item by text.
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeAllMenus|class=node}{tr:id=name}{td}h6.removeAllMenus}{tr}{tbody}{tbody:id=getMenuCount|class=node}{tr:id=name}{td}h6.getMenuCount{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getMenuCount{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=sigdes}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}removeAllMenus{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}Remove all menus from the menubar.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version infoGet the number of (top level) menu's.{td}{tr}{tr:id=ret}{td}*Returns*\\ [Number]{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
// Note: method getMenuCount only works in the smart client.

// Get the number of (top level) menu's.
{code}{div}{td}{tr}{tr:idclass=prslastDetailRow}{td}*Parameters*\\{td}{tr}{tbody}{tbody:id=getMenuIndexByText|class=node}{tr:id=retname}{td}*Returns*\\voidh6.getMenuIndexByText{td}{tr}{tr:id=seesig}{td}*Also see*\\{div:class=sIndent}{div}{td}{tr}{tr:id=link}{td}*External links*\\{div:class=sIndent}{div{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getMenuIndexByText{span}{span:id=iets|style=float: left;}\(menuName){span}{td}{tr}{tr:id=samdes}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
// Note: method removeAllMenus only works inRetrieve the index of the smartitem client.

// Remove all menus from the menubar.
{code}{div}by text.{td}{tr}{tr:classid=lastDetailRowprs}{td}*Parameters*\\menuName
{td}{tr}{tbody}{tbody:id=removeMenu|class=node}{tr:id=nameret}{td}h6.removeMenu*Returns*\\ [Number]{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}removeMenu{span}{span:id=iets|style=float: left;}\(index 1, \[index 2-n\]){span:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
// Note: method getMenuIndexByText only works in the smart client.

// Retrieve the index of the item by text.
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeAllMenus|class=node}{tr:id=desname}{td}Remove the menu(s) at the selected index/indices.h6.removeAllMenus{td}{tr}{tr:id=sncsig}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\index 1
\[index 2\-n\]
{td}{tr}{tr:id=ret}{td}*Returns*\\void{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}removeAllMenus{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=seedes}{td}*Also see*\\{div:class=sIndent}{div}Remove all menus from the menubar.{td}{tr}{tr:id=linkret}{td}*External linksReturns*\\{div:class=sIndent}{div}void{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
// Note: method removeMenuremoveAllMenus only works in the smart client.

// Remove the menu(s) atall menus from the selected index/indicesmenubar.
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=reset|class=node}{tr:id=name}{td}h6.reset{td}{tr}{tr:id=sig}{td}{td}{span:style=float: left; margin-right: 5px;}void{span}{spantr}{tbody}{tbody:id=ietsremoveMenu|style=float: left; font-weight: bold;}reset{span}{span:id=iets|style=float: left;}\(){span}class=node}{tr:id=name}{td}h6.removeMenu{td}{tr}{tr:id=dessig}{td}Reset the menubar to the default.{td}{tr}{tr:id=snc}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}removeMenu{span}{span:id=iets|style=float: left;}\(index 1, \[index 2-n\]){span}{td}{tr}{tr:id=retdes}{td}*Returns*\\voidRemove the menu(s) at the selected index/indices.{td}{tr}{tr:id=seeprs}{td}*Also see*\\{div:class=sIndent}{div}*Parameters*\\index 1
\[index 2\-n\]
{td}{tr}{tr:id=linkret}{td}*External links*\\{div:class=sIndent}{div}}*Returns*\\void{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
// Note: method resetremoveMenu only works in the smart client.

// ResetRemove the menubar tomenu(s) at the selected defaultindex/indices.
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setVisiblereset|class=node}{tr:id=name}{td}h6.setVisiblereset{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setVisiblereset{span}{span:id=iets|style=float: left;}\(visible){span}{td}{tr}{tr:id=des}{td}Show/hide the menu barReset the menubar to the default.{td}{tr}{tr:id=ret}{td}*Returns*\\void{td}{tr}{tr:id=sncsam}{td}*SinceSample*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\visible
{td}{tr}{tr:id=ret}{td}*Returns*\\void{div:class=sIndent}{code:language=javascript}
// Note: method reset only works in the smart client.

// Reset the menubar to the default.
{code}{div}{td}{tr}{tr:id=see}{td}*Also see*\\{div{tr:class=sIndentlastDetailRow}{divtd}{td}{tr}{tbody}{trtbody:id=setVisible|class=linknode}{td}*External links*\\{div:class=sIndent}{div}tr:id=name}{td}h6.setVisible{td}{tr}{tr:id=samsig}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
// Note: method setVisible only works in the smart client.

// {span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setVisible{span}{span:id=iets|style=float: left;}\(visible){span}{td}{tr}{tr:id=des}{td}Show/hide the menu bar
{code}{div}{td}{tr}{tr:classid=lastDetailRowprs}{td}*Parameters*\\visible
{td}{tr}{tbody}{tbody:id=validate|class=node}{tr:id=nameret}{td}h6.validate*Returns*\\void{td}{tr}{tr:id=sigsam}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}validate{span}{span:id=iets|style=float: left;}\(){span*Sample*\\{div:class=sIndent}{code:language=javascript}
// Note: method setVisible only works in the smart client.

// Show/hide the menu bar
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=validate|class=node}{tr:id=desname}{td}Use this when your add/remove/edit operation won't refresh.h6.validate{td}{tr}{tr:id=sncsig}{td}*Since*\\ Replace with version info{td}{tr}{tr:id=prs}{td}*Parameters*\\{td}{tr}{tr:id=ret}{td}*Returns*\\void{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}validate{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=seedes}{td}*Also see*\\{div:class=sIndent}{div}Use this when your add/remove/edit operation won't refresh.{td}{tr}{tr:id=linkret}{td}*External linksReturns*\\{div:class=sIndent}{div}void{td}{tr}{tr:id=sam}{td}*Sample*\\{div:class=sIndent}{code:language=javascript}
// Note: method validate only works in the smart client.

// Use this when your add/remove/edit operation won't refresh.
{code}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}