Child pages
  • Menu

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
{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}Property Summary{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#text] {td}{tr}{tbody}{table}\\{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}[CheckBox]{td}{td}[#addCheckBox]\(index) Add the Checkbox at the selected index (starting at 0) or add it at the end (empty).{td}{tr}{tbody}{tbody}{tr}{td}[MenuItem]{td}{td}[#addItem]\(index) Add the item at the selected index (starting at 0) or add it at the end (empty).{td}{tr}{tbody}{tbody}{tr}{td}[RadioButton]{td}{td}[#addRadioButton]\(index) Add the Radiobutton at the selected index (starting at 0) or add it at the end (empty).{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#addRadioGroup]\() Add a Radiogroup for the Radiobuttons.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#addSeparator]\(index) Add the separator at the selected index (starting at 0) or add it at the end (empty).{td}{tr}{tbody}{tbody}{tr}{td}[Menu]{td}{td}[#addSubMenu]\(index) Add the submenu at the selected index (starting at 0) or add it at the end (empty).{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#doClick]\(click) Script the selection (emulate a mouse click) of the menu.{td}{tr}{tbody}{tbody}{tr}{td}[CheckBox]{td}{td}[#getCheckBox]\(index) Get the Checkbox at the selected index (starting at 0).{td}{tr}{tbody}{tbody}{tr}{td}[MenuItem]{td}{td}[#getItem]\(index) Get the item at the selected index (starting at 0).{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getItemCount]\() Get the number of items in the menu.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getItemIndexByText]\(name) Retrieve the index of the item by text.{td}{tr}{tbody}{tbody}{tr}{td}[RadioButton]{td}{td}[#getRadioButton]\(index) Get the Radiobutton at the selected index (starting at 0).{td}{tr}{tbody}{tbody}{tr}{td}[Menu]{td}{td}[#getSubMenu]\(index) Get the submenu at the selected index (starting at 0).{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#removeAllItems]\() Remove all items from the menu.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#removeItem]\(index 1, index 2-n) Remove the item(s) at the selected index/indices.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#set]\(text, mnemonic, enabled) Set the menu with a text and optional mnemonic key.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setEnabled]\(enabled) Set the the selected menu enabled or disabled.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setIcon]\(icon) Set the icon of the menu.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setMnemonic]\(mnemonic) Set the mnemonic of the selected menu.{td}{tr}{tbody}{table}\\{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=B4733367-3B55-44F5-9691-7D56AE03466F}{tr:id=name}{td}h6.text{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:B4733367-3B55-44F5-9691-7D56AE03466F_des|text=|trigger=button}{sub-section}{sub-section:B4733367-3B55-44F5-9691-7D56AE03466F_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:B4733367-3B55-44F5-9691-7D56AE03466F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:B4733367-3B55-44F5-9691-7D56AE03466F_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:B4733367-3B55-44F5-9691-7D56AE03466F_ret|text=|trigger=button}{sub-section}{sub-section:B4733367-3B55-44F5-9691-7D56AE03466F_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:B4733367-3B55-44F5-9691-7D56AE03466F_see|text=|trigger=button}{sub-section}{sub-section:B4733367-3B55-44F5-9691-7D56AE03466F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:B4733367-3B55-44F5-9691-7D56AE03466F_see|text=|trigger=button}{sub-section}{sub-section:B4733367-3B55-44F5-9691-7D56AE03466F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:B4733367-3B55-44F5-9691-7D56AE03466F_sam|text=|trigger=button}{sub-section}{sub-section:B4733367-3B55-44F5-9691-7D56AE03466F_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=04BDBB36-9314-440D-A4BE-AFB256911012}{tr:id=name}{td}h6.addCheckBox{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[CheckBox]{span}{span:id=iets|style=float: left; font-weight: bold;}addCheckBox{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:04BDBB36-9314-440D-A4BE-AFB256911012_des|text=|trigger=button}{sub-section}{sub-section:04BDBB36-9314-440D-A4BE-AFB256911012_des|trigger=none|class=sIndent}Add the Checkbox at the selected index (starting at 0) or add it at the end (empty)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:04BDBB36-9314-440D-A4BE-AFB256911012_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:04BDBB36-9314-440D-A4BE-AFB256911012_prs|trigger=none}\[index\] {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:04BDBB36-9314-440D-A4BE-AFB256911012_ret|text=|trigger=button}{sub-section}{sub-section:04BDBB36-9314-440D-A4BE-AFB256911012_ret|trigger=none|class=sIndent}[CheckBox]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:04BDBB36-9314-440D-A4BE-AFB256911012_see|text=|trigger=button}{sub-section}{sub-section:04BDBB36-9314-440D-A4BE-AFB256911012_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:04BDBB36-9314-440D-A4BE-AFB256911012_see|text=|trigger=button}{sub-section}{sub-section:04BDBB36-9314-440D-A4BE-AFB256911012_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:04BDBB36-9314-440D-A4BE-AFB256911012_sam|text=|trigger=button}{sub-section}{sub-section:04BDBB36-9314-440D-A4BE-AFB256911012_sam|class=sIndent|trigger=none}{code:language=javascript} // Add the Checkbox at the selected index (starting at 0) or add it at the end (empty)... // get the menu at the last index // indexes start at 0 (zero) so index 2 is in fact position 3 var menu = plugins.menubar.getMenu(plugins.menubar.getMenuCount() - 1); // when you don't define an index the checkbox will be added at the last position // this is what you usually do to build a new menu var checkbox = menu.addCheckBox(); // create the settings for the specified menu item // minimum settings are the text and method properties // the method can be a global or form method // be sure to enter the method WITHOUT '()' at the end checkbox.set("checkbox with feedback",feedback_checkbox); var checkbox = menu.addCheckBox(); // set the checkbox to selected checkbox.set("checkbox selected",feedback_checkbox, true); var checkbox = menu.addCheckBox(); // add an 'input' array. the array will be concatenated to the end of the arguments // array which can be read out in the selected method var input = [1,"is","the","added","input",false]; checkbox.set("checkbox with input",feedback_checkbox,false,input); var checkbox = menu.addCheckBox(); // add an icon to the item checkbox.set("checkbox with icon",feedback_checkbox,false,input,"media:///yourimage.gif"); var checkbox = menu.addCheckBox(); // add an accelerator key ('alt shift a' in the below example) // REMARK: always test the accelerator key. sometimes they will not work because // these keys already have an 'action' assigned to them via the operating system. checkbox.set("checkbox with accelerator",feedback_checkbox,false,input,"media:///yourimage.gif","alt shift a"); var checkbox = menu.addCheckBox(); // add a mnemonic key ('i' in our example) which is the underlined shortkey on windows // REMARK: setting the mnemonic key is platform dependent checkbox.set("checkbox with mnemonic",feedback_checkbox,false,input,"media:///yourimage.gif","a","i"); var checkbox = menu.addCheckBox(); // disable the menu item checkbox.set("checkbox disabled",feedback_checkbox,false,input,"media:///yourimage.gif","control 3","t",false); var checkbox = menu.addCheckBox(); // set the menu item to be visible checkbox.set("checkbox visible",feedback_checkbox,false,input,"media:///yourimage.gif","meta 4","e",true,true); var checkbox = menu.addCheckBox(); // set the menu item disabled and NOT visible checkbox.set("checkbox invisible",feedback_checkbox,false,input,"media:///yourimage.gif","alt 5","m",false,false); // add a separator at the last position or at a given index menu.addSeparator(); // WIZARD // You can use the menubar wizard Tools/Plugins/IT2Be help/Menubar Wizzzard to create you menu // The wizard will help you at least to learn how to use the plugin and will help you to find the correct // accelerator key string {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4B714B7F-75CD-479E-9E28-C8AAA26D3508}{tr:id=name}{td}h6.addItem{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[MenuItem]{span}{span:id=iets|style=float: left; font-weight: bold;}addItem{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:4B714B7F-75CD-479E-9E28-C8AAA26D3508_des|text=|trigger=button}{sub-section}{sub-section:4B714B7F-75CD-479E-9E28-C8AAA26D3508_des|trigger=none|class=sIndent}Add the item at the selected index (starting at 0) or add it at the end (empty)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:4B714B7F-75CD-479E-9E28-C8AAA26D3508_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4B714B7F-75CD-479E-9E28-C8AAA26D3508_prs|trigger=none}\[index\] {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:4B714B7F-75CD-479E-9E28-C8AAA26D3508_ret|text=|trigger=button}{sub-section}{sub-section:4B714B7F-75CD-479E-9E28-C8AAA26D3508_ret|trigger=none|class=sIndent}[MenuItem]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4B714B7F-75CD-479E-9E28-C8AAA26D3508_see|text=|trigger=button}{sub-section}{sub-section:4B714B7F-75CD-479E-9E28-C8AAA26D3508_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4B714B7F-75CD-479E-9E28-C8AAA26D3508_see|text=|trigger=button}{sub-section}{sub-section:4B714B7F-75CD-479E-9E28-C8AAA26D3508_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4B714B7F-75CD-479E-9E28-C8AAA26D3508_sam|text=|trigger=button}{sub-section}{sub-section:4B714B7F-75CD-479E-9E28-C8AAA26D3508_sam|class=sIndent|trigger=none}{code:language=javascript} // Add the item at the selected index (starting at 0) or add it at the end (empty)... // get the menu at the last index // indexes start at 0 (zero) so index 2 is in fact position 3 var menu = plugins.menubar.getMenu(plugins.menubar.getMenuCount() - 1); // when you don't define an index the item will be added at the last position // this is what you usually do to build a new menu var item = menu.addItem(); // create the settings for the specified menu item // minimum settings are the text and method properties // the method can be a global or form method // be sure to enter the method WITHOUT '()' at the end item.set("item with feedback",globals.feedback_item); var item = menu.addItem(); // add an 'input' array. the array will be concatenated to the end of the arguments // array which can be read out in the selected method var input = [1,"is","the","added","input",false]; item.set("item with input",globals.feedback_item,input); var item = menu.addItem(); // add an icon to the item item.set("item with icon",globals.feedback_item,input,"media:///yourimage.gif"); var item = menu.addItem(); // add an accelerator key ('alt shift 2' in the below example) // REMARK: always test the accelerator key. sometimes they will not work because // these keys already have an 'action' assigned to them via the operating system. item.set("item with accelerator",globals.feedback_item,input,"media:///yourimage.gif","alt shift 2"); var item = menu.addItem(); // add a mnemonic key ('i' in our example) which is the underlined shortkey on windows // REMARK: setting the mnemonic key is platform dependent // the accelerator key will not work in this and the next example item.set("item with mnemonic",globals.feedback_item,input,"media:///yourimage.gif","pressed COMMA","i"); var item = menu.addItem(); // disable the menu item item.set("item disabled",globals.feedback_item,input,"media:///yourimage.gif","meta HOME","t",false); var item = menu.addItem(); // set the menu item to be visible // this accelerator key will work item.set("item visible",globals.feedback_item,input,"media:///yourimage.gif","shift meta PAGE_DOWN","e",true,true); var item = menu.addItem(); // now the item is enabled and NOT visible item.set("item invisible",globals.feedback_item,input,"media:///yourimage.gif","A","m",true,false); // add a separator at the last position or at a given index menu.addSeparator(); return; // when you don't define an index the checkbox will be added at the last position // this is what you usually do to build a new menu var checkbox = menu.addCheckBox(); // create the settings for the specified menu item // minimum settings are the text and method properties // the method can be a global or form method // be sure to enter the method WITHOUT '()' at the end checkbox.set("item 09",feedback_checkbox); // ,false,input,"media:///yourimage.gif"); var checkbox = menu.addCheckBox(); checkbox.set("item 10",feedback_checkbox,true,null,"media:///yourimage.gif"); // add a separator at the last position or at a given index menu.addSeparator(); // add a new Radiobutton Group // the Radiobutton Group 'binds' the added radiobuttons to each other menu.addRadioGroup(); var radiobutton = menu.addRadioButton(); radiobutton.set("item 12",feedback_radiobutton,false,input,"media:///yourimage.gif"); var radiobutton = menu.addRadioButton(); radiobutton.set("item 13",feedback_radiobutton,true,null,"media:///yourimage.gif"); // add a new Radiobutton Group menu.addRadioGroup(); var radiobutton = menu.addRadioButton(); radiobutton.set("item 14",feedback_radiobutton,false,null,null,"F6","i"); var radiobutton = menu.addRadioButton(); radiobutton.set("item 15",feedback_radiobutton,false,null,null,"meta F7","t"); // add a separator at the last position or at a given index menu.addSeparator(); // and add some submenu's var submenu1 = menu.addSubMenu(); submenu1.set("submenu 17"); submenu1.addItem().set("sub item 17-00",globals.sampleMenuExec); var submenu2 = submenu1.addSubMenu(); submenu2.set("submenu 01"); submenu2.addItem().set("sub item 01-00",globals.sampleMenuExec); var submenu3 = submenu1.addSubMenu(); submenu3.set("submenu 02"); // add a separator at the last position or at a given index menu.addSeparator(); // WIZARD // You can use the menubar wizard Tools/Plugins/IT2Be help/Menubar Wizzzard to create you menu // The wizard will help you at least to learn how to use the plugin and will help you to find the correct // accelerator key string {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E8429433-37D0-4B89-BD8B-68248639B76B}{tr:id=name}{td}h6.addRadioButton{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[RadioButton]{span}{span:id=iets|style=float: left; font-weight: bold;}addRadioButton{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:E8429433-37D0-4B89-BD8B-68248639B76B_des|text=|trigger=button}{sub-section}{sub-section:E8429433-37D0-4B89-BD8B-68248639B76B_des|trigger=none|class=sIndent}Add the Radiobutton at the selected index (starting at 0) or add it at the end (empty)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:E8429433-37D0-4B89-BD8B-68248639B76B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E8429433-37D0-4B89-BD8B-68248639B76B_prs|trigger=none}\[index\] {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:E8429433-37D0-4B89-BD8B-68248639B76B_ret|text=|trigger=button}{sub-section}{sub-section:E8429433-37D0-4B89-BD8B-68248639B76B_ret|trigger=none|class=sIndent}[RadioButton]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E8429433-37D0-4B89-BD8B-68248639B76B_see|text=|trigger=button}{sub-section}{sub-section:E8429433-37D0-4B89-BD8B-68248639B76B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E8429433-37D0-4B89-BD8B-68248639B76B_see|text=|trigger=button}{sub-section}{sub-section:E8429433-37D0-4B89-BD8B-68248639B76B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E8429433-37D0-4B89-BD8B-68248639B76B_sam|text=|trigger=button}{sub-section}{sub-section:E8429433-37D0-4B89-BD8B-68248639B76B_sam|class=sIndent|trigger=none}{code:language=javascript} // Add the Radiobutton at the selected index (starting at 0) or add it at the end (empty)... // get the menu at the last index // indexes start at 0 (zero) so index 2 is in fact position 3 var menu = plugins.menubar.getMenu(plugins.menubar.getMenuCount() - 1); // add a new Radiobutton group // a group will 'bind' all added radiobuttons after the group together // as a result checking one item will uncheck the other menu.addRadioGroup(); // when you don't define an index the radiobutton will be added at the last position // this is what you usually do to build a new menu var radiobutton = menu.addRadioButton(); // create the settings for the specified menu item // minimum settings are the text and method properties // the method can be a global or form method // be sure to enter the method WITHOUT '()' at the end radiobutton.set("radiobutton with feedback",feedback_radiobutton); var radiobutton = menu.addRadioButton(); // set the radiobutton to selected radiobutton.set("radiobutton selected",feedback_radiobutton, true); var radiobutton = menu.addRadioButton(); // add an 'input' array. the array will be concatenated to the end of the arguments // array which can be read out in the selected method var input = [1,"is","the","added","input",false]; radiobutton.set("radiobutton with input",feedback_radiobutton,false,input); var radiobutton = menu.addRadioButton(); // add an icon to the item radiobutton.set("radiobutton with icon",feedback_radiobutton,false,input,"media:///yourimage.gif"); var radiobutton = menu.addRadioButton(); // add an accelerator key ('alt shift 3' in the below example) // REMARK: always test the accelerator key. sometimes they will not work because // these keys already have an 'action' assigned to them via the operating system. radiobutton.set("radiobutton with accelerator",feedback_radiobutton,false,input,"media:///yourimage.gif","alt shift 3"); // add a separator at the last position or at a given index menu.addSeparator(); // add a new Radiobutton group menu.addRadioGroup(); var radiobutton = menu.addRadioButton(); // add a mnemonic key ('i' in our example) which is the underlined shortkey on windows // REMARK: setting the mnemonic key is platform dependent radiobutton.set("radiobutton with mnemonic",feedback_radiobutton,false,input,"media:///yourimage.gif","a","i"); var radiobutton = menu.addRadioButton(); // disable the menu item radiobutton.set("radiobutton disabled",feedback_radiobutton,false,input,"media:///yourimage.gif","control 3","t",false); var radiobutton = menu.addRadioButton(); // set the menu item to be visible radiobutton.set("radiobutton visible",feedback_radiobutton,true,input,"media:///yourimage.gif","meta 4","e",true,true); var radiobutton = menu.addRadioButton(); // now the item is enabled and NOT visible radiobutton.set("radiobutton invisible",feedback_radiobutton,false,input,"media:///yourimage.gif","alt 5","m",true,false); // add a separator at the last position or at a given index menu.addSeparator(); // WIZARD // You can use the menubar wizard Tools/Plugins/IT2Be help/Menubar Wizzzard to create you menu // The wizard will help you at least to learn how to use the plugin and will help you to find the correct // accelerator key string {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9C6FF23A-C1D8-4424-AC78-2FE5976C2085}{tr:id=name}{td}h6.addRadioGroup{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addRadioGroup{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:9C6FF23A-C1D8-4424-AC78-2FE5976C2085_des|text=|trigger=button}{sub-section}{sub-section:9C6FF23A-C1D8-4424-AC78-2FE5976C2085_des|trigger=none|class=sIndent}Add a Radiogroup for the Radiobuttons...{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:9C6FF23A-C1D8-4424-AC78-2FE5976C2085_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9C6FF23A-C1D8-4424-AC78-2FE5976C2085_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:9C6FF23A-C1D8-4424-AC78-2FE5976C2085_ret|text=|trigger=button}{sub-section}{sub-section:9C6FF23A-C1D8-4424-AC78-2FE5976C2085_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9C6FF23A-C1D8-4424-AC78-2FE5976C2085_see|text=|trigger=button}{sub-section}{sub-section:9C6FF23A-C1D8-4424-AC78-2FE5976C2085_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9C6FF23A-C1D8-4424-AC78-2FE5976C2085_see|text=|trigger=button}{sub-section}{sub-section:9C6FF23A-C1D8-4424-AC78-2FE5976C2085_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9C6FF23A-C1D8-4424-AC78-2FE5976C2085_sam|text=|trigger=button}{sub-section}{sub-section:9C6FF23A-C1D8-4424-AC78-2FE5976C2085_sam|class=sIndent|trigger=none}{code:language=javascript} // Add a Radiogroup for the Radiobuttons... // get the menu at the last index // indexes start at 0 (zero) so index 2 is in fact position 3 var menu = plugins.menubar.getMenu(plugins.menubar.getMenuCount() - 1); // add a new Radiobutton group // a group will 'bind' all added radiobuttons after the group together // as a result checking one item will uncheck the other menu.addRadioGroup(); // when you don't define an index the radiobutton will be added at the last position // this is what you usually do to build a new menu var radiobutton = menu.addRadioButton(); // create the settings for the specified menu item // minimum settings are the text and method properties // the method can be a global or form method // be sure to enter the method WITHOUT '()' at the end radiobutton.set("radiobutton with feedback",feedback_radiobutton); var radiobutton = menu.addRadioButton(); // set the radiobutton to selected radiobutton.set("radiobutton selected",feedback_radiobutton, true); var radiobutton = menu.addRadioButton(); // add an 'input' array. the array will be concatenated to the end of the arguments // array which can be read out in the selected method var input = [1,"is","the","added","input",false]; radiobutton.set("radiobutton with input",feedback_radiobutton,false,input); var radiobutton = menu.addRadioButton(); // add an icon to the item radiobutton.set("radiobutton with icon",feedback_radiobutton,false,input,"media:///yourimage.gif"); var radiobutton = menu.addRadioButton(); // add an accelerator key ('alt shift 3' in the below example) // REMARK: always test the accelerator key. sometimes they will not work because // these keys already have an 'action' assigned to them via the operating system. radiobutton.set("radiobutton with accelerator",feedback_radiobutton,false,input,"media:///yourimage.gif","alt shift 3"); // add a separator at the last position or at a given index menu.addSeparator(); // add a new Radiobutton group menu.addRadioGroup(); var radiobutton = menu.addRadioButton(); // add a mnemonic key ('i' in our example) which is the underlined shortkey on windows // REMARK: setting the mnemonic key is platform dependent radiobutton.set("radiobutton with mnemonic",feedback_radiobutton,false,input,"media:///yourimage.gif","a","i"); var radiobutton = menu.addRadioButton(); // disable the menu item radiobutton.set("radiobutton disabled",feedback_radiobutton,false,input,"media:///yourimage.gif","control 3","t",false); var radiobutton = menu.addRadioButton(); // set the menu item to be visible radiobutton.set("radiobutton visible",feedback_radiobutton,true,input,"media:///yourimage.gif","meta 4","e",true,true); var radiobutton = menu.addRadioButton(); // now the item is enabled and NOT visible radiobutton.set("radiobutton invisible",feedback_radiobutton,false,input,"media:///yourimage.gif","alt 5","m",true,false); // add a separator at the last position or at a given index menu.addSeparator(); // WIZARD // You can use the menubar wizard Tools/Plugins/IT2Be help/Menubar Wizzzard to create you menu // The wizard will help you at least to learn how to use the plugin and will help you to find the correct // accelerator key string {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=9CA71612-AF6F-4EE2-AD4E-1433F9CEF99B}{tr:id=name}{td}h6.addSeparator{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addSeparator{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:9CA71612-AF6F-4EE2-AD4E-1433F9CEF99B_des|text=|trigger=button}{sub-section}{sub-section:9CA71612-AF6F-4EE2-AD4E-1433F9CEF99B_des|trigger=none|class=sIndent}Add the separator at the selected index (starting at 0) or add it at the end (empty)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:9CA71612-AF6F-4EE2-AD4E-1433F9CEF99B_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:9CA71612-AF6F-4EE2-AD4E-1433F9CEF99B_prs|trigger=none}\[index\] {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:9CA71612-AF6F-4EE2-AD4E-1433F9CEF99B_ret|text=|trigger=button}{sub-section}{sub-section:9CA71612-AF6F-4EE2-AD4E-1433F9CEF99B_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:9CA71612-AF6F-4EE2-AD4E-1433F9CEF99B_see|text=|trigger=button}{sub-section}{sub-section:9CA71612-AF6F-4EE2-AD4E-1433F9CEF99B_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:9CA71612-AF6F-4EE2-AD4E-1433F9CEF99B_see|text=|trigger=button}{sub-section}{sub-section:9CA71612-AF6F-4EE2-AD4E-1433F9CEF99B_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:9CA71612-AF6F-4EE2-AD4E-1433F9CEF99B_sam|text=|trigger=button}{sub-section}{sub-section:9CA71612-AF6F-4EE2-AD4E-1433F9CEF99B_sam|class=sIndent|trigger=none}{code:language=javascript} // Add the separator at the selected index (starting at 0) or add it at the end (empty)... plugins.menubar.getMenu(0).addSeparator(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D4B75257-F63C-40CB-AADA-EC2D96785A00}{tr:id=name}{td}h6.addSubMenu{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Menu]{span}{span:id=iets|style=float: left; font-weight: bold;}addSubMenu{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:D4B75257-F63C-40CB-AADA-EC2D96785A00_des|text=|trigger=button}{sub-section}{sub-section:D4B75257-F63C-40CB-AADA-EC2D96785A00_des|trigger=none|class=sIndent}Add the submenu at the selected index (starting at 0) or add it at the end (empty)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:D4B75257-F63C-40CB-AADA-EC2D96785A00_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D4B75257-F63C-40CB-AADA-EC2D96785A00_prs|trigger=none}\[index\] {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:D4B75257-F63C-40CB-AADA-EC2D96785A00_ret|text=|trigger=button}{sub-section}{sub-section:D4B75257-F63C-40CB-AADA-EC2D96785A00_ret|trigger=none|class=sIndent}[Menu]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D4B75257-F63C-40CB-AADA-EC2D96785A00_see|text=|trigger=button}{sub-section}{sub-section:D4B75257-F63C-40CB-AADA-EC2D96785A00_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D4B75257-F63C-40CB-AADA-EC2D96785A00_see|text=|trigger=button}{sub-section}{sub-section:D4B75257-F63C-40CB-AADA-EC2D96785A00_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D4B75257-F63C-40CB-AADA-EC2D96785A00_sam|text=|trigger=button}{sub-section}{sub-section:D4B75257-F63C-40CB-AADA-EC2D96785A00_sam|class=sIndent|trigger=none}{builder-show:permission=edit}{code:language=javascript} {code}{builder-show}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7DA9BCAE-3A3F-4EA3-8204-51501BC78FB0}{tr:id=name}{td}h6.doClick{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}doClick{span}{span:id=iets|style=float: left;}\(click){span}{td}{tr}{tr:id=des}{td}{sub-section:7DA9BCAE-3A3F-4EA3-8204-51501BC78FB0_des|text=|trigger=button}{sub-section}{sub-section:7DA9BCAE-3A3F-4EA3-8204-51501BC78FB0_des|trigger=none|class=sIndent}Script the selection (emulate a mouse click) of the menu...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:7DA9BCAE-3A3F-4EA3-8204-51501BC78FB0_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7DA9BCAE-3A3F-4EA3-8204-51501BC78FB0_prs|trigger=none}click {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:7DA9BCAE-3A3F-4EA3-8204-51501BC78FB0_ret|text=|trigger=button}{sub-section}{sub-section:7DA9BCAE-3A3F-4EA3-8204-51501BC78FB0_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7DA9BCAE-3A3F-4EA3-8204-51501BC78FB0_see|text=|trigger=button}{sub-section}{sub-section:7DA9BCAE-3A3F-4EA3-8204-51501BC78FB0_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7DA9BCAE-3A3F-4EA3-8204-51501BC78FB0_see|text=|trigger=button}{sub-section}{sub-section:7DA9BCAE-3A3F-4EA3-8204-51501BC78FB0_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7DA9BCAE-3A3F-4EA3-8204-51501BC78FB0_sam|text=|trigger=button}{sub-section}{sub-section:7DA9BCAE-3A3F-4EA3-8204-51501BC78FB0_sam|class=sIndent|trigger=none}{code:language=javascript} // Script the selection (emulate a mouse click) of the menu... plugins.menubar.getMenu(0).doClick(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=AF5BBBDE-CC64-4471-8164-A6C0D5373932}{tr:id=name}{td}h6.getCheckBox{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[CheckBox]{span}{span:id=iets|style=float: left; font-weight: bold;}getCheckBox{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:AF5BBBDE-CC64-4471-8164-A6C0D5373932_des|text=|trigger=button}{sub-section}{sub-section:AF5BBBDE-CC64-4471-8164-A6C0D5373932_des|trigger=none|class=sIndent}Get the Checkbox at the selected index (starting at 0)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:AF5BBBDE-CC64-4471-8164-A6C0D5373932_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AF5BBBDE-CC64-4471-8164-A6C0D5373932_prs|trigger=none}index {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:AF5BBBDE-CC64-4471-8164-A6C0D5373932_ret|text=|trigger=button}{sub-section}{sub-section:AF5BBBDE-CC64-4471-8164-A6C0D5373932_ret|trigger=none|class=sIndent}[CheckBox]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:AF5BBBDE-CC64-4471-8164-A6C0D5373932_see|text=|trigger=button}{sub-section}{sub-section:AF5BBBDE-CC64-4471-8164-A6C0D5373932_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:AF5BBBDE-CC64-4471-8164-A6C0D5373932_see|text=|trigger=button}{sub-section}{sub-section:AF5BBBDE-CC64-4471-8164-A6C0D5373932_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:AF5BBBDE-CC64-4471-8164-A6C0D5373932_sam|text=|trigger=button}{sub-section}{sub-section:AF5BBBDE-CC64-4471-8164-A6C0D5373932_sam|class=sIndent|trigger=none}{code:language=javascript} // Get the Checkbox at the selected index (starting at 0)... // get the menu at the last position // indexes start at 0 (zero) so index 2 is in fact position 3 var menu = plugins.menubar.getMenu(plugins.menubar.getMenuCount() - 1); var checkbox = menu.getCheckBox(0); checkbox.setText("Changed menu item"); // REMARK: we actually changed an original menu (item)! As a result resetting the // menubar will NOT reset the above changes. We need to reset the menu (item) // manually the following way: // get the menu // var menu = plugins.menubar.getMenu(2); // get the item // var item = menu.getItem(0); // reset the values to default // notice we use an i18n message here the same way you would use it with // standard Servoy methods and plugins // item.setText("i18n:servoy.menuitem.viewAsRecord"); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7A4DEE70-8964-4B76-B3B2-11B8A8B85FA5}{tr:id=name}{td}h6.getItem{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[MenuItem]{span}{span:id=iets|style=float: left; font-weight: bold;}getItem{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:7A4DEE70-8964-4B76-B3B2-11B8A8B85FA5_des|text=|trigger=button}{sub-section}{sub-section:7A4DEE70-8964-4B76-B3B2-11B8A8B85FA5_des|trigger=none|class=sIndent}Get the item at the selected index (starting at 0)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:7A4DEE70-8964-4B76-B3B2-11B8A8B85FA5_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7A4DEE70-8964-4B76-B3B2-11B8A8B85FA5_prs|trigger=none}index {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:7A4DEE70-8964-4B76-B3B2-11B8A8B85FA5_ret|text=|trigger=button}{sub-section}{sub-section:7A4DEE70-8964-4B76-B3B2-11B8A8B85FA5_ret|trigger=none|class=sIndent}[MenuItem]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7A4DEE70-8964-4B76-B3B2-11B8A8B85FA5_see|text=|trigger=button}{sub-section}{sub-section:7A4DEE70-8964-4B76-B3B2-11B8A8B85FA5_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7A4DEE70-8964-4B76-B3B2-11B8A8B85FA5_see|text=|trigger=button}{sub-section}{sub-section:7A4DEE70-8964-4B76-B3B2-11B8A8B85FA5_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7A4DEE70-8964-4B76-B3B2-11B8A8B85FA5_sam|text=|trigger=button}{sub-section}{sub-section:7A4DEE70-8964-4B76-B3B2-11B8A8B85FA5_sam|class=sIndent|trigger=none}{code:language=javascript} // Get the item at the selected index (starting at 0)... // get the menu at the last position // indexes start at 0 (zero) so index 2 is in fact position 3 var menu = plugins.menubar.getMenu(plugins.menubar.getMenuCount() - 1); var item = menu.getItem(0); item.setText("Changed menu item"); // REMARK: we actually changed an original menu (item)! As a result resetting the // menubar will NOT reset the above changes. We need to reset the menu (item) // manually the following way: // get the menu // var menu = plugins.menubar.getMenu(2); // get the item // var item = menu.getItem(0); // reset the values to default // notice we use an i18n message here the same way you would use it with // standard Servoy methods and plugins // item.setText("i18n:servoy.menuitem.viewAsRecord"); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=29CE220F-575D-4748-A020-A484FEBF2117}{tr:id=name}{td}h6.getItemCount{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getItemCount{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:29CE220F-575D-4748-A020-A484FEBF2117_des|text=|trigger=button}{sub-section}{sub-section:29CE220F-575D-4748-A020-A484FEBF2117_des|trigger=none|class=sIndent}Get the number of items in the menu...{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:29CE220F-575D-4748-A020-A484FEBF2117_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:29CE220F-575D-4748-A020-A484FEBF2117_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:29CE220F-575D-4748-A020-A484FEBF2117_ret|text=|trigger=button}{sub-section}{sub-section:29CE220F-575D-4748-A020-A484FEBF2117_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:29CE220F-575D-4748-A020-A484FEBF2117_see|text=|trigger=button}{sub-section}{sub-section:29CE220F-575D-4748-A020-A484FEBF2117_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:29CE220F-575D-4748-A020-A484FEBF2117_see|text=|trigger=button}{sub-section}{sub-section:29CE220F-575D-4748-A020-A484FEBF2117_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:29CE220F-575D-4748-A020-A484FEBF2117_sam|text=|trigger=button}{sub-section}{sub-section:29CE220F-575D-4748-A020-A484FEBF2117_sam|class=sIndent|trigger=none}{code:language=javascript} // Get the number of items in the menu... // REMARK: indexes start at 0, disabled items, non visible items and seperators are counted also // REMARK: this is especially important when getting items by the index application.output(plugins.menubar.getMenu(0).getItemCount()); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=2FE944F7-23AF-4E5A-81D4-367852398B9F}{tr:id=name}{td}h6.getItemIndexByText{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getItemIndexByText{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:2FE944F7-23AF-4E5A-81D4-367852398B9F_des|text=|trigger=button}{sub-section}{sub-section:2FE944F7-23AF-4E5A-81D4-367852398B9F_des|trigger=none|class=sIndent}Retrieve the index of the item by text...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:2FE944F7-23AF-4E5A-81D4-367852398B9F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:2FE944F7-23AF-4E5A-81D4-367852398B9F_prs|trigger=none}name {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:2FE944F7-23AF-4E5A-81D4-367852398B9F_ret|text=|trigger=button}{sub-section}{sub-section:2FE944F7-23AF-4E5A-81D4-367852398B9F_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:2FE944F7-23AF-4E5A-81D4-367852398B9F_see|text=|trigger=button}{sub-section}{sub-section:2FE944F7-23AF-4E5A-81D4-367852398B9F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:2FE944F7-23AF-4E5A-81D4-367852398B9F_see|text=|trigger=button}{sub-section}{sub-section:2FE944F7-23AF-4E5A-81D4-367852398B9F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:2FE944F7-23AF-4E5A-81D4-367852398B9F_sam|text=|trigger=button}{sub-section}{sub-section:2FE944F7-23AF-4E5A-81D4-367852398B9F_sam|class=sIndent|trigger=none}{builder-show:permission=edit}{code:language=javascript} {code}{builder-show}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=60C9C891-7097-408B-962C-0F4C4F0BF83F}{tr:id=name}{td}h6.getRadioButton{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[RadioButton]{span}{span:id=iets|style=float: left; font-weight: bold;}getRadioButton{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:60C9C891-7097-408B-962C-0F4C4F0BF83F_des|text=|trigger=button}{sub-section}{sub-section:60C9C891-7097-408B-962C-0F4C4F0BF83F_des|trigger=none|class=sIndent}Get the Radiobutton at the selected index (starting at 0)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:60C9C891-7097-408B-962C-0F4C4F0BF83F_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:60C9C891-7097-408B-962C-0F4C4F0BF83F_prs|trigger=none}index {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:60C9C891-7097-408B-962C-0F4C4F0BF83F_ret|text=|trigger=button}{sub-section}{sub-section:60C9C891-7097-408B-962C-0F4C4F0BF83F_ret|trigger=none|class=sIndent}[RadioButton]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:60C9C891-7097-408B-962C-0F4C4F0BF83F_see|text=|trigger=button}{sub-section}{sub-section:60C9C891-7097-408B-962C-0F4C4F0BF83F_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:60C9C891-7097-408B-962C-0F4C4F0BF83F_see|text=|trigger=button}{sub-section}{sub-section:60C9C891-7097-408B-962C-0F4C4F0BF83F_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:60C9C891-7097-408B-962C-0F4C4F0BF83F_sam|text=|trigger=button}{sub-section}{sub-section:60C9C891-7097-408B-962C-0F4C4F0BF83F_sam|class=sIndent|trigger=none}{code:language=javascript} // Get the Radiobutton at the selected index (starting at 0)... // get the menu at the last position // indexes start at 0 (zero) so index 2 is in fact position 3 var menu = plugins.menubar.getMenu(plugins.menubar.getMenuCount() - 1); var checkbox = menu.getItem(0); checkbox.setText("Changed menu item"); // REMARK: we actually changed an original menu (item)! As a result resetting the // menubar will NOT reset the above changes. We need to reset the menu (item) // manually the following way: // get the menu // var menu = plugins.menubar.getMenu(2); // get the item // var item = menu.getItem(0); // reset the values to default // notice we use an i18n message here the same way you would use it with // standard Servoy methods and plugins // item.setText("i18n:servoy.menuitem.viewAsRecord"); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=AD3548A5-392C-4C17-90E4-92DF7DEE4991}{tr:id=name}{td}h6.getSubMenu{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Menu]{span}{span:id=iets|style=float: left; font-weight: bold;}getSubMenu{span}{span:id=iets|style=float: left;}\(index){span}{td}{tr}{tr:id=des}{td}{sub-section:AD3548A5-392C-4C17-90E4-92DF7DEE4991_des|text=|trigger=button}{sub-section}{sub-section:AD3548A5-392C-4C17-90E4-92DF7DEE4991_des|trigger=none|class=sIndent}Get the submenu at the selected index (starting at 0)...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:AD3548A5-392C-4C17-90E4-92DF7DEE4991_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:AD3548A5-392C-4C17-90E4-92DF7DEE4991_prs|trigger=none}index {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:AD3548A5-392C-4C17-90E4-92DF7DEE4991_ret|text=|trigger=button}{sub-section}{sub-section:AD3548A5-392C-4C17-90E4-92DF7DEE4991_ret|trigger=none|class=sIndent}[Menu]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:AD3548A5-392C-4C17-90E4-92DF7DEE4991_see|text=|trigger=button}{sub-section}{sub-section:AD3548A5-392C-4C17-90E4-92DF7DEE4991_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:AD3548A5-392C-4C17-90E4-92DF7DEE4991_see|text=|trigger=button}{sub-section}{sub-section:AD3548A5-392C-4C17-90E4-92DF7DEE4991_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:AD3548A5-392C-4C17-90E4-92DF7DEE4991_sam|text=|trigger=button}{sub-section}{sub-section:AD3548A5-392C-4C17-90E4-92DF7DEE4991_sam|class=sIndent|trigger=none}{builder-show:permission=edit}{code:language=javascript} {code}{builder-show}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=668480D0-2BE8-4D94-B35D-17112D5062F9}{tr:id=name}{td}h6.removeAllItems{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}removeAllItems{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:668480D0-2BE8-4D94-B35D-17112D5062F9_des|text=|trigger=button}{sub-section}{sub-section:668480D0-2BE8-4D94-B35D-17112D5062F9_des|trigger=none|class=sIndent}Remove all items from the menu...{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:668480D0-2BE8-4D94-B35D-17112D5062F9_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:668480D0-2BE8-4D94-B35D-17112D5062F9_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:668480D0-2BE8-4D94-B35D-17112D5062F9_ret|text=|trigger=button}{sub-section}{sub-section:668480D0-2BE8-4D94-B35D-17112D5062F9_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:668480D0-2BE8-4D94-B35D-17112D5062F9_see|text=|trigger=button}{sub-section}{sub-section:668480D0-2BE8-4D94-B35D-17112D5062F9_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:668480D0-2BE8-4D94-B35D-17112D5062F9_see|text=|trigger=button}{sub-section}{sub-section:668480D0-2BE8-4D94-B35D-17112D5062F9_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:668480D0-2BE8-4D94-B35D-17112D5062F9_sam|text=|trigger=button}{sub-section}{sub-section:668480D0-2BE8-4D94-B35D-17112D5062F9_sam|class=sIndent|trigger=none}{code:language=javascript} // Remove all items from the menu... // get the menu at the last index // indexes start at 0 (zero) so index 2 is in fact position 3 var menu = plugins.menubar.getMenu(plugins.menubar.getMenuCount() - 1); // remove all menu items from the selected menu menu.removeAllItems(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=38F30509-D554-4535-AFB6-9E23849DD976}{tr:id=name}{td}h6.removeItem{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}removeItem{span}{span:id=iets|style=float: left;}\(index 1, index 2-n){span}{td}{tr}{tr:id=des}{td}{sub-section:38F30509-D554-4535-AFB6-9E23849DD976_des|text=|trigger=button}{sub-section}{sub-section:38F30509-D554-4535-AFB6-9E23849DD976_des|trigger=none|class=sIndent}Remove the item(s) at the selected index/indices...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:38F30509-D554-4535-AFB6-9E23849DD976_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:38F30509-D554-4535-AFB6-9E23849DD976_prs|trigger=none}index 1 \[index 2-n\] {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:38F30509-D554-4535-AFB6-9E23849DD976_ret|text=|trigger=button}{sub-section}{sub-section:38F30509-D554-4535-AFB6-9E23849DD976_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:38F30509-D554-4535-AFB6-9E23849DD976_see|text=|trigger=button}{sub-section}{sub-section:38F30509-D554-4535-AFB6-9E23849DD976_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:38F30509-D554-4535-AFB6-9E23849DD976_see|text=|trigger=button}{sub-section}{sub-section:38F30509-D554-4535-AFB6-9E23849DD976_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:38F30509-D554-4535-AFB6-9E23849DD976_sam|text=|trigger=button}{sub-section}{sub-section:38F30509-D554-4535-AFB6-9E23849DD976_sam|class=sIndent|trigger=none}{code:language=javascript} // Remove the item(s) at the selected index/indices... // get the menu at the last index // indexes start at 0 (zero) so index 2 is in fact position 3 var menu = plugins.menubar.getMenu(plugins.menubar.getMenuCount() - 1); // remove only one item at the selected index // from the selected menu // menu.removeItem(0); // remove more than one item at the selected indices // from the selected menu menu.removeItem(1,2); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=72CF9D97-BE08-4148-9A20-67F8A7E5F066}{tr:id=name}{td}h6.set{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}set{span}{span:id=iets|style=float: left;}\(text, mnemonic, enabled){span}{td}{tr}{tr:id=des}{td}{sub-section:72CF9D97-BE08-4148-9A20-67F8A7E5F066_des|text=|trigger=button}{sub-section}{sub-section:72CF9D97-BE08-4148-9A20-67F8A7E5F066_des|trigger=none|class=sIndent}Set the menu with a text and optional mnemonic key. The menu is enabled by default...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:72CF9D97-BE08-4148-9A20-67F8A7E5F066_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:72CF9D97-BE08-4148-9A20-67F8A7E5F066_prs|trigger=none}text \[mnemonic\] \[enabled\] {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:72CF9D97-BE08-4148-9A20-67F8A7E5F066_ret|text=|trigger=button}{sub-section}{sub-section:72CF9D97-BE08-4148-9A20-67F8A7E5F066_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:72CF9D97-BE08-4148-9A20-67F8A7E5F066_see|text=|trigger=button}{sub-section}{sub-section:72CF9D97-BE08-4148-9A20-67F8A7E5F066_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:72CF9D97-BE08-4148-9A20-67F8A7E5F066_see|text=|trigger=button}{sub-section}{sub-section:72CF9D97-BE08-4148-9A20-67F8A7E5F066_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:72CF9D97-BE08-4148-9A20-67F8A7E5F066_sam|text=|trigger=button}{sub-section}{sub-section:72CF9D97-BE08-4148-9A20-67F8A7E5F066_sam|class=sIndent|trigger=none}{code:language=javascript} // add a menu at the given index // when you don't define an index the menu will be added at the last // positon of the menubar var menu = plugins.menubar.addMenu(); // set the text of the menu at the chose position menu.setText("add menu"); // set the mnemonic key menu.setMnemonic("a"); // disable the menu menu.setEnabled(true); // another way of doing the same thing would have been to use // the set() method menu.set("add menu", "a", true); // REMARK: normally you would add menu items, checkboxes etc in the same method // this example will show no menu items for now! // IMPORTANT: Working with menu's on developer and client can differ // WIZARD // You can use the menubar wizard Tools/Plugins/IT2Be help/Menubar Wizzzard to create you menu // The wizard will help you at least to learn how to use the plugin and will help you to find the correct // accelerator key string {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=81D2E1CD-841A-4A16-9E09-A854B8AFA028}{tr:id=name}{td}h6.setEnabled{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setEnabled{span}{span:id=iets|style=float: left;}\(enabled){span}{td}{tr}{tr:id=des}{td}{sub-section:81D2E1CD-841A-4A16-9E09-A854B8AFA028_des|text=|trigger=button}{sub-section}{sub-section:81D2E1CD-841A-4A16-9E09-A854B8AFA028_des|trigger=none|class=sIndent}Set the the selected menu enabled or disabled...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:81D2E1CD-841A-4A16-9E09-A854B8AFA028_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:81D2E1CD-841A-4A16-9E09-A854B8AFA028_prs|trigger=none}enabled {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:81D2E1CD-841A-4A16-9E09-A854B8AFA028_ret|text=|trigger=button}{sub-section}{sub-section:81D2E1CD-841A-4A16-9E09-A854B8AFA028_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:81D2E1CD-841A-4A16-9E09-A854B8AFA028_see|text=|trigger=button}{sub-section}{sub-section:81D2E1CD-841A-4A16-9E09-A854B8AFA028_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:81D2E1CD-841A-4A16-9E09-A854B8AFA028_see|text=|trigger=button}{sub-section}{sub-section:81D2E1CD-841A-4A16-9E09-A854B8AFA028_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:81D2E1CD-841A-4A16-9E09-A854B8AFA028_sam|text=|trigger=button}{sub-section}{sub-section:81D2E1CD-841A-4A16-9E09-A854B8AFA028_sam|class=sIndent|trigger=none}{code:language=javascript} // Set the the selected menu enabled or disabled... var menu = plugins.menubar.getMenu(0); menu.setText("Hello"); menu.setMnemonic("H"); menu.setEnabled(false); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=573E2210-5126-4D87-B885-624EFF6462C3}{tr:id=name}{td}h6.setIcon{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setIcon{span}{span:id=iets|style=float: left;}\(icon){span}{td}{tr}{tr:id=des}{td}{sub-section:573E2210-5126-4D87-B885-624EFF6462C3_des|text=|trigger=button}{sub-section}{sub-section:573E2210-5126-4D87-B885-624EFF6462C3_des|trigger=none|class=sIndent}Set the icon of the menu...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:573E2210-5126-4D87-B885-624EFF6462C3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:573E2210-5126-4D87-B885-624EFF6462C3_prs|trigger=none}icon {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:573E2210-5126-4D87-B885-624EFF6462C3_ret|text=|trigger=button}{sub-section}{sub-section:573E2210-5126-4D87-B885-624EFF6462C3_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:573E2210-5126-4D87-B885-624EFF6462C3_see|text=|trigger=button}{sub-section}{sub-section:573E2210-5126-4D87-B885-624EFF6462C3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:573E2210-5126-4D87-B885-624EFF6462C3_see|text=|trigger=button}{sub-section}{sub-section:573E2210-5126-4D87-B885-624EFF6462C3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:573E2210-5126-4D87-B885-624EFF6462C3_sam|text=|trigger=button}{sub-section}{sub-section:573E2210-5126-4D87-B885-624EFF6462C3_sam|class=sIndent|trigger=none}{builder-show:permission=edit}{code:language=javascript} {code}{builder-show}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=CEAEEDDC-5634-42F9-A280-CEC0D3E75F27}{tr:id=name}{td}h6.setMnemonic{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setMnemonic{span}{span:id=iets|style=float: left;}\(mnemonic){span}{td}{tr}{tr:id=des}{td}{sub-section:CEAEEDDC-5634-42F9-A280-CEC0D3E75F27_des|text=|trigger=button}{sub-section}{sub-section:CEAEEDDC-5634-42F9-A280-CEC0D3E75F27_des|trigger=none|class=sIndent}Set the mnemonic of the selected menu...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:CEAEEDDC-5634-42F9-A280-CEC0D3E75F27_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CEAEEDDC-5634-42F9-A280-CEC0D3E75F27_prs|trigger=none}mnemonic {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:CEAEEDDC-5634-42F9-A280-CEC0D3E75F27_ret|text=|trigger=button}{sub-section}{sub-section:CEAEEDDC-5634-42F9-A280-CEC0D3E75F27_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CEAEEDDC-5634-42F9-A280-CEC0D3E75F27_see|text=|trigger=button}{sub-section}{sub-section:CEAEEDDC-5634-42F9-A280-CEC0D3E75F27_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CEAEEDDC-5634-42F9-A280-CEC0D3E75F27_see|text=|trigger=button}{sub-section}{sub-section:CEAEEDDC-5634-42F9-A280-CEC0D3E75F27_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CEAEEDDC-5634-42F9-A280-CEC0D3E75F27_sam|text=|trigger=button}{sub-section}{sub-section:CEAEEDDC-5634-42F9-A280-CEC0D3E75F27_sam|class=sIndent|trigger=none}{code:language=javascript} // Set the mnemonic of the selected menu... var menu = plugins.menubar.getMenu(0); menu.setText("Hello"); menu.setMnemonic("H"); menu.setEnabled(false); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
Wiki Markup
Cache
indextrue
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClient

servoy sSummary12%30%58%height: 30px;3Property SummaryRetrieve/set the text.

servoy sSummary12%30%58%height: 30px;3Methods SummaryAdd a checkbox.Add a checkbox at the selected index (starting at 0) or at the end.Add a checkbox with given name.Add a checkbox at the selected index (starting at 0) or at the end.Add a checkbox at the selected index (starting at 0) or at the end.Add a checkbox at the selected index (starting at 0) or at the end.Add a checkbox at the selected index (starting at 0) or at the end.Add a checkbox at the selected index (starting at 0) or at the end.Add a submenu at the end.Add a submenu at the selected index (starting at 0).Add a submenu with given name.Add a menu item.Add a menu item at the selected index (starting at 0) or at the end.Add a menu item with given name.Add a menu item at the selected index (starting at 0) or at the end.Add a menu item at the selected index (starting at 0) or at the end.Add a menu item at the selected index (starting at 0) or at the end.Add a menu item at the selected index (starting at 0) or at the end.Add a menu item at the selected index (starting at 0) or at the end.Add a radio button.Add a radiobutton at the selected index (starting at 0) or at the end.Add a radio button with given name.Add a radiobutton at the selected index (starting at 0) or at the end.Add a radiobutton at the selected index (starting at 0) or at the end.Add a radiobutton at the selected index (starting at 0) or at the end.Add a radiobutton at the selected index (starting at 0) or at the end.Add a radiobutton at the selected index (starting at 0) or at the end.voidAdd a radiogroup for radiobuttons.voidAdd the separator at the selected index (starting at 0) or at the end (empty).voidAdd the separator at the selected index (starting at 0) or at the end (empty).voidScript the selection (emulate a mouse click) of the menu.Get the checkbox at the selected index (starting at 0).Gets the specified client property for the element based on a key.Get the item at the selected index (starting at 0).Get the number of items in the menu.Retrieve the index of the item by text.Get the submenu at the selected index (starting at 0).Get the radiobutton at the selected index (starting at 0).voidSets the value for the specified element client property key.voidRemove all items from the menu.voidRemove the item(s) at the selected index/indices.voidSet the the selected menu enabled or disabled.voidSet the icon of the menu.voidSet the mnemonic of the selected menu.

propertyservoy sDetail2100%height:30px2Property Detailstextname

text

dessIndent
Retrieve/set the text.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow

functionservoy sDetail2100%height:30px2Methods DetailsaddCheckBoxname

addCheckBox()

dessIndent
Add a checkbox.
ret

Returns

sIndent checkbox
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRowaddCheckBoxname

addCheckBox(index)

dessIndent
Add a checkbox at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentindexthe index at which to add the checkbox
ret

Returns

sIndent checkbox
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addCheckBoxname

addCheckBox(name)

dessIndent
Add a checkbox with given name.
prs

Parameters

sIndentnamethe checkbox text; this can be also html if enclosed between html tags
ret

Returns

sIndent checkbox
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addCheckBoxname

addCheckBox(name, feedback_item)

dessIndent
Add a checkbox at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentnamethe checkbox text; this can be also html if enclosed between html tagsfeedback_itemthe feedback function
ret

Returns

sIndent checkbox
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addCheckBoxname

addCheckBox(name, feedback_item, icon)

dessIndent
Add a checkbox at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentnamethe checkbox text; this can be also html if enclosed between html tagsfeedback_itemthe feedback functioniconthe checkbox icon (can be an image URL or the image content byte array)
ret

Returns

sIndent checkbox
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addCheckBoxname

addCheckBox(name, feedback_item, icon, mnemonic)

dessIndent
Add a checkbox at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentnamethe checkbox text; this can be also html if enclosed between html tagsfeedback_itemthe feedback functioniconthe checkbox icon (can be an image URL or the image content byte array)mnemonicthe checkbox mnemonic
ret

Returns

sIndent checkbox
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addCheckBoxname

addCheckBox(name, feedback_item, icon, mnemonic, enabled)

dessIndent
Add a checkbox at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentnamethe checkbox text; this can be also html if enclosed between html tagsfeedback_itemthe feedback functioniconthe checkbox icon (can be an image URL or the image content byte array)mnemonicthe checkbox mnemonicenabledthe enabled state of the checkbox
ret

Returns

sIndent checkbox
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addCheckBoxname

addCheckBox(name, feedback_item, icon, mnemonic, enabled, align)

dessIndent
Add a checkbox at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentnamethe checkbox text; this can be also html if enclosed between html tagsfeedback_itemthe feedback functioniconthe checkbox icon (can be an image URL or the image content byte array)mnemonicthe checkbox mnemonicenabledthe enabled state of the checkboxalignthe alignment type
ret

Returns

sIndent checkbox
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addMenuname

addMenu()

dessIndent
Add a submenu at the end.
ret

Returns

sIndent the submenu
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addMenuname

addMenu(index)

dessIndent
Add a submenu at the selected index (starting at 0).
prs

Parameters

sIndentindexthe index at which to add the submenu
ret

Returns

sIndent the submenu
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addMenuname

addMenu(name)

dessIndent
Add a submenu with given name.
prs

Parameters

sIndentnamethe text of the submenu; this can be also html if enclosed between html tags
ret

Returns

sIndent the submenu
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addMenuItemname

addMenuItem()

dessIndent
Add a menu item.
ret

Returns

sIndent menu item
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addMenuItemname

addMenuItem(index)

dessIndent
Add a menu item at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentindexthe index at which to add the menu item
ret

Returns

sIndent menu item
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addMenuItemname

addMenuItem(name)

dessIndent
Add a menu item with given name.
prs

Parameters

sIndentnamethe menu item text; this can be also html if enclosed between html tags
ret

Returns

sIndent menu item
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addMenuItemname

addMenuItem(name, feedback_item)

dessIndent
Add a menu item at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentnamethe menu item text; this can be also html if enclosed between html tagsfeedback_itemthe feedback function
ret

Returns

sIndent menu item
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addMenuItemname

addMenuItem(name, feedback_item, icon)

dessIndent
Add a menu item at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentnamethe menu item text; this can be also html if enclosed between html tagsfeedback_itemthe feedback functioniconthe menu item icon (can be an image URL or the image content byte array)
ret

Returns

sIndent menu item
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addMenuItemname

addMenuItem(name, feedback_item, icon, mnemonic)

dessIndent
Add a menu item at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentnamethe menu item text; this can be also html if enclosed between html tagsfeedback_itemthe feedback functioniconthe menu item icon (can be an image URL or the image content byte array)mnemonicthe menu item mnemonic
ret

Returns

sIndent menu item
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addMenuItemname

addMenuItem(name, feedback_item, icon, mnemonic, enabled)

dessIndent
Add a menu item at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentnamethe menu item text; this can be also html if enclosed between html tagsfeedback_itemthe feedback functioniconthe menu item icon (can be an image URL or the image content byte array)mnemonicthe menu item mnemonicenabledthe enabled state of the menu item
ret

Returns

sIndent menu item
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addMenuItemname

addMenuItem(name, feedback_item, icon, mnemonic, enabled, align)

dessIndent
Add a menu item at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentnamethe menu item text; this can be also html if enclosed between html tagsfeedback_itemthe feedback functioniconthe menu item icon (can be an image URL or the image content byte array).In NGClient we also support fontawesome class.mnemonicthe menu item mnemonicenabledthe enabled state of the menu itemalignthe alignment type
ret

Returns

sIndent menu item
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addRadioButtonname

addRadioButton()

dessIndent
Add a radio button.
ret

Returns

sIndent a radio button menu item
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addRadioButtonname

addRadioButton(index)

dessIndent
Add a radiobutton at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentindexthe index at which to add the radio button
ret

Returns

sIndent a radio button menu item
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addRadioButtonname

addRadioButton(name)

dessIndent
Add a radio button with given name.
prs

Parameters

sIndentnamethe radio button text; this can be also html if enclosed between html tags
ret

Returns

sIndent a radio button menu item
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addRadioButtonname

addRadioButton(name, feedback_item)

dessIndent
Add a radiobutton at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentnamethe radio button text; this can be also html if enclosed between html tagsfeedback_itemthe feedback function
ret

Returns

sIndent a radio button menu item
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addRadioButtonname

addRadioButton(name, feedback_item, icon)

dessIndent
Add a radiobutton at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentnamethe radio button text; this can be also html if enclosed between html tagsfeedback_itemthe feedback functioniconthe radio button icon (can be an image URL or the image content byte array)
ret

Returns

sIndent a radio button menu item
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addRadioButtonname

addRadioButton(name, feedback_item, icon, mnemonic)

dessIndent
Add a radiobutton at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentnamethe radio button text; this can be also html if enclosed between html tagsfeedback_itemthe feedback functioniconthe radio button icon (can be an image URL or the image content byte array)mnemonicthe radio button mnemonic
ret

Returns

sIndent a radio button menu item
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addRadioButtonname

addRadioButton(name, feedback_item, icon, mnemonic, enabled)

dessIndent
Add a radiobutton at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentnamethe radio button text; this can be also html if enclosed between html tagsfeedback_itemthe feedback functioniconthe radio button icon (can be an image URL or the image content byte array)mnemonicthe radio button mnemonicenabledthe enabled state of radio button
ret

Returns

sIndent a radio button menu item
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addRadioButtonname

addRadioButton(name, feedback_item, icon, mnemonic, enabled, align)

dessIndent
Add a radiobutton at the selected index (starting at 0) or at the end.
prs

Parameters

sIndentnamethe radio button text; this can be also html if enclosed between html tagsfeedback_itemthe feedback functioniconthe radio button icon (can be an image URL or the image content byte array)mnemonicthe radio button mnemonicenabledthe enabled state of radio buttonalignthe alignment type
ret

Returns

sIndent a radio button menu item
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addRadioGroupname

addRadioGroup()

dessIndent
Add a radiogroup for radiobuttons. A radiogroup groups together all radiobuttons that are added
after the group is added. From all radiobuttons that belong to the same radiogroup only one can be
checked at a time.

If no radiogroup is added, one is created automatically when the first radiobutton is added.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addSeparatorname

addSeparator()

dessIndent
Add the separator at the selected index (starting at 0) or at the end (empty).
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
addSeparatorname

addSeparator(index)

dessIndent
Add the separator at the selected index (starting at 0) or at the end (empty).
prs

Parameters

sIndentindexthe index at which to add the separator
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
doClickname

doClick()

dessIndent
Script the selection (emulate a mouse click) of the menu.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getCheckBoxname

getCheckBox(index)

dessIndent
Get the checkbox at the selected index (starting at 0).
prs

Parameters

sIndentindex ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getClientPropertyname

getClientProperty(key)

dessIndent
Gets the specified client property for the element based on a key.
prs

Parameters

sIndentkey ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getItemname

getItem(index)

dessIndent
Get the item at the selected index (starting at 0).
prs

Parameters

sIndentindex ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getItemCountname

getItemCount()

dessIndent
Get the number of items in the menu.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getItemIndexByTextname

getItemIndexByText(text)

dessIndent
Retrieve the index of the item by text.
prs

Parameters

sIndenttext ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getMenuname

getMenu(index)

dessIndent
Get the submenu at the selected index (starting at 0).
prs

Parameters

sIndentindex ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
getRadioButtonname

getRadioButton(index)

dessIndent
Get the radiobutton at the selected index (starting at 0).
prs

Parameters

sIndentindex ;
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
putClientPropertyname

putClientProperty(key, value)

dessIndent
Sets the value for the specified element client property key.
prs

Parameters

sIndentkey ;value ;
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
removeAllItemsname

removeAllItems()

dessIndent
Remove all items from the menu.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
removeItemname

removeItem(index)

dessIndent
Remove the item(s) at the selected index/indices.
prs

Parameters

sIndentindexarray of one or moe indexes corresponding to items to remove
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
setEnabledname

setEnabled(boolean)

dessIndent
Set the the selected menu enabled or disabled.
prs

Parameters

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
setIconname

setIcon(Object)

dessIndent
Set the icon of the menu.
prs

Parameters

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow
setMnemonicname

setMnemonic(String)

dessIndent
Set the mnemonic of the selected menu.
prs

Parameters

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient
sam

Sample

sIdentjavascript
lastDetailRow