Table Head (thead) |
---|
Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
|
Table Body (tbody) |
---|
id | addButton-String_Function |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a Button to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // create a new toolbar
var toolbar = plugins.window. |
|
|
|
| getToolBar""
// add a button with a text and a method
toolbar.addButton("button", feedback_button); |
|
|
|
|
// add an input array to the button for feedback in the selected method
toolbar.addButton("button", feedback_button, [1, "2", "three"]);
|
|
|
|
|
// add an icon to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif");
|
|
|
|
|
// add a tooltip to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip |
|
|
|
| .
// show only an icon on the button and disable the button
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip |
|
|
|
| .
add a separatortoolbar.addSeparator();
// make the button non visible
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip |
|
|
|
| .
// and validate the changes
// to make them know to the user interface)
toolbar.validate();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=EB9CDD24-A1E4-4EC8-AACF-39D2FCCEAB28}{tr:id=name}{td}h6.addCheckBox{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addCheckBox{span}{span:id=iets|style=float: left;}\(text, method, selected, tooltip, enabled, visible){span}{td}{tr}{tr:id=des}{td}{sub-section:EB9CDD24-A1E4-4EC8-AACF-39D2FCCEAB28_des|text=|trigger=button}{sub-section}{sub-section:EB9CDD24-A1E4-4EC8-AACF-39D2FCCEAB28_des|trigger=none|class=sIndent}Add a CheckBox to the toolbar.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:EB9CDD24-A1E4-4EC8-AACF-39D2FCCEAB28_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EB9CDD24-A1E4-4EC8-AACF-39D2FCCEAB28_prs|trigger=none}text
method
\[selected\]
\[tooltip\]
\[enabled\]
\[visible\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:EB9CDD24-A1E4-4EC8-AACF-39D2FCCEAB28_ret|text=|trigger=button}{sub-section}{sub-section:EB9CDD24-A1E4-4EC8-AACF-39D2FCCEAB28_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EB9CDD24-A1E4-4EC8-AACF-39D2FCCEAB28_see|text=|trigger=button}{sub-section}{sub-section:EB9CDD24-A1E4-4EC8-AACF-39D2FCCEAB28_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EB9CDD24-A1E4-4EC8-AACF-39D2FCCEAB28_see|text=|trigger=button}{sub-section}{sub-section:EB9CDD24-A1E4-4EC8-AACF-39D2FCCEAB28_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:EB9CDD24-A1E4-4EC8-AACF-39D2FCCEAB28_sam|text=|trigger=button}{sub-section}{sub-section:EB9CDD24-A1E4-4EC8-AACF-39D2FCCEAB28_sam|class=sIndent|trigger=none}{code:language=javascript}
// add a toolbar with a name and internal name
var toolbar = plugins.window.addToolBar("toolbar_1", "toolbar_1");
// add a checkbox with a text and a method
toolbar.addCheckBox("checkbox", feedback_button);
// add an checkbox and set it's state to selected (not selected by default)
toolbar.addCheckBox("checkbox", feedback_button, true);
// add a tooltip to the checkbox
toolbar.addCheckBox("checkbox", feedback_button, false, "tooltip");
// add a separator
toolbar.addSeparator();
// disable the checkbox and select it
toolbar.addCheckBox("checkbox", feedback_button, true, "tooltip",false);
// make the button non visible
toolbar.addCheckBox("checkbox", feedback_button, false, "tooltip",false, false);
// and validate the changes
// to make them know to the user interface)
toolbar.validate();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E1883D04-6C47-44B6-90E5-F75F2DD83F8C}{tr:id=name}{td}h6.addComboBox{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addComboBox{span}{span:id=iets|style=float: left;}\(method, index, input, tooltip, enabled, visible){span}{td}{tr}{tr:id=des}{td}{sub-section:E1883D04-6C47-44B6-90E5-F75F2DD83F8C_des|text=|trigger=button}{sub-section}{sub-section:E1883D04-6C47-44B6-90E5-F75F2DD83F8C_des|trigger=none|class=sIndent}Add a ComboBox to the toolbar.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:E1883D04-6C47-44B6-90E5-F75F2DD83F8C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E1883D04-6C47-44B6-90E5-F75F2DD83F8C_prs|trigger=none}method
index
input
\[tooltip\]
\[enabled\]
\[visible\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:E1883D04-6C47-44B6-90E5-F75F2DD83F8C_ret|text=|trigger=button}{sub-section}{sub-section:E1883D04-6C47-44B6-90E5-F75F2DD83F8C_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E1883D04-6C47-44B6-90E5-F75F2DD83F8C_see|text=|trigger=button}{sub-section}{sub-section:E1883D04-6C47-44B6-90E5-F75F2DD83F8C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E1883D04-6C47-44B6-90E5-F75F2DD83F8C_see|text=|trigger=button}{sub-section}{sub-section:E1883D04-6C47-44B6-90E5-F75F2DD83F8C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E1883D04-6C47-44B6-90E5-F75F2DD83F8C_sam|text=|trigger=button}{sub-section}{sub-section:E1883D04-6C47-44B6-90E5-F75F2DD83F8C_sam|class=sIndent|trigger=none}{code:language=javascript}
// add a toolbar with a name and internal name at the given row index Table Body (tbody) |
---|
id | addButton-String_Function_ObjectArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(text, method, arguments) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a Button to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // create a new toolbar
var toolbar = plugins.window.addToolBar('toolbar_0');
// add a button with a text and a method
toolbar.addButton("button", feedback_button);
// add an input array to the button for feedback in the selected method
toolbar.addButton("button", feedback_button, [1, "2", "three"]);
// add an icon to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif");
// add a tooltip to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip");
// show only an icon on the button and disable the button
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip", false);
// make the button non visible
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip", true, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addButton-String_Function_ObjectArray_Object |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(text, method, arguments, icon) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a Button to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // create a new toolbar
var toolbar = plugins.window.addToolBar('toolbar_0');
// add a button with a text and a method
toolbar.addButton("button", feedback_button);
// add an input array to the button for feedback in the selected method
toolbar.addButton("button", feedback_button, [1, "2", "three"]);
// add an icon to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif");
// add a tooltip to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip");
// show only an icon on the button and disable the button
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip", false);
// make the button non visible
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip", true, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addButton-String_Function_ObjectArray_Object_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(text, method, arguments, icon, tooltip) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a Button to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // create a new toolbar
var toolbar = plugins.window.addToolBar( |
|
|
|
| "2", "toolbar_2", 3
comboboxtheattached method, selected index and input (list) array
toolbar.addComboBox(text and a method
toolbar.addButton("button", feedback_button);
// add an input array to the button for feedback in the selected method
toolbar.addButton("button", feedback_button, |
|
|
|
| 0[inputarray","combobox",1
atooltipcomboboxaddComboBoxaddButton("button", feedback_button, [1, |
|
|
|
| [inputarray","combobox",2tooltipmedia:///yourimage.gif"); |
|
|
|
|
separator
toolbar.addSeparator();
// disable the combobox
toolbar.addComboBox(to the button
toolbar.addButton("button", feedback_button, |
|
|
|
| 2[inputarray"combobox",3] "media:///yourimage.gif", "tooltip" |
|
|
|
| ,false
makecombobox non visiblebutton and disable the button
toolbar. |
|
|
|
| addComboBoxaddButton(null, feedback_button, |
|
|
|
| 3[inputarray"combobox",4] "media:///yourimage.gif", "tooltip", |
|
|
|
| false,
and validatechanges//to make them know to the user interface)
toolbar.validate();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ACAC3588-B83E-47F4-8626-A0694C6B5846}{tr:id=name}{td}h6.addField{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}addField{span}{span:id=iets|style=float: left;}\(method, text, tooltip, enabled, visible){span}{td}{tr}{tr:id=des}{td}{sub-section:ACAC3588-B83E-47F4-8626-A0694C6B5846_des|text=|trigger=button}{sub-section}{sub-section:ACAC3588-B83E-47F4-8626-A0694C6B5846_des|trigger=none|class=sIndent}Add a Field to the toolbar.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:ACAC3588-B83E-47F4-8626-A0694C6B5846_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ACAC3588-B83E-47F4-8626-A0694C6B5846_prs|trigger=none}method
text
\[tooltip\]
\[enabled\]
\[visible\]
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:ACAC3588-B83E-47F4-8626-A0694C6B5846_ret|text=|trigger=button}{sub-section}{sub-section:ACAC3588-B83E-47F4-8626-A0694C6B5846_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ACAC3588-B83E-47F4-8626-A0694C6B5846_see|text=|trigger=button}{sub-section}{sub-section:ACAC3588-B83E-47F4-8626-A0694C6B5846_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ACAC3588-B83E-47F4-8626-A0694C6B5846_see|text=|trigger=button}{sub-section}{sub-section:ACAC3588-B83E-47F4-8626-A0694C6B5846_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ACAC3588-B83E-47F4-8626-A0694C6B5846_sam|text=|trigger=button}{sub-section}{sub-section:ACAC3588-B83E-47F4-8626-A0694C6B5846_sam|class=sIndent|trigger=none}{code:language=javascript}
// add a toolbar with a name and internal name at the given row index
var toolbar = plugins.window.addToolBar("toolbar_3", "toolbar_3", 4);
// add a field with the attached method and a default text
toolbar.addField(feedback_button, null);
// add a separator
toolbar.addSeparator();
// set the length of the field.
// default length = 8 when length is not set or set to 0
toolbar.addField(feedback_button, "field", 0, "tooltip");
// add a separator
toolbar.addSeparator();
// add a tooltip to the field
toolbar.addField(feedback_button, "field", 10, "tooltip");
// add a separator
toolbar.addSeparator();
// disable the field
toolbar.addField(feedback_button, null, 5, "tooltip",false);
// add a separator
toolbar.addSeparator();
// make the field non visible
toolbar.addField(feedback_button, "field", 0, "tooltip",false, false);
// and validate the changes
// to make them know to the user interface)
toolbar.validate();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DB0D99D6-30E8-4105-A969-5B741AA82787}{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;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:DB0D99D6-30E8-4105-A969-5B741AA82787_des|text=|trigger=button}{sub-section}{sub-section:DB0D99D6-30E8-4105-A969-5B741AA82787_des|trigger=none|class=sIndent}Add a Separator to the toolbar.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DB0D99D6-30E8-4105-A969-5B741AA82787_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DB0D99D6-30E8-4105-A969-5B741AA82787_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DB0D99D6-30E8-4105-A969-5B741AA82787_ret|text=|trigger=button}{sub-section}{sub-section:DB0D99D6-30E8-4105-A969-5B741AA82787_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DB0D99D6-30E8-4105-A969-5B741AA82787_see|text=|trigger=button}{sub-section}{sub-section:DB0D99D6-30E8-4105-A969-5B741AA82787_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DB0D99D6-30E8-4105-A969-5B741AA82787_see|text=|trigger=button}{sub-section}{sub-section:DB0D99D6-30E8-4105-A969-5B741AA82787_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DB0D99D6-30E8-4105-A969-5B741AA82787_sam|text=|trigger=button}{sub-section}{sub-section:DB0D99D6-30E8-4105-A969-5B741AA82787_sam|class=sIndent|trigger=none}{code:language=javascript}
// get the toolbar at the panel by name
var toolbar = plugins.window.getToolBar("toolbar_0");
// add a button with a text and a method
toolbar.addButton("button", feedback_button);
// add an input array to the button for feedback in the selected method
toolbar.addButton("button", feedback_button, [1, "2", "three"]);
// add an icon to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif");
// add a tooltip to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip.");
// show only an icon on the button and disable the button
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip.", false);
// add a separator
toolbar.addSeparator();
// make the button non visible
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip.",true, false);
// and validate the changes
// to make them know to the user interface)
toolbar.validate();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=32B7FF1E-6E67-473F-8484-03DC245AF4D2}{tr:id=name}{td}h6.enableItem{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}enableItem{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:32B7FF1E-6E67-473F-8484-03DC245AF4D2_des|text=|trigger=button}{sub-section}{sub-section:32B7FF1E-6E67-473F-8484-03DC245AF4D2_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:32B7FF1E-6E67-473F-8484-03DC245AF4D2_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:32B7FF1E-6E67-473F-8484-03DC245AF4D2_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:32B7FF1E-6E67-473F-8484-03DC245AF4D2_ret|text=|trigger=button}{sub-section}{sub-section:32B7FF1E-6E67-473F-8484-03DC245AF4D2_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:32B7FF1E-6E67-473F-8484-03DC245AF4D2_see|text=|trigger=button}{sub-section}{sub-section:32B7FF1E-6E67-473F-8484-03DC245AF4D2_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:32B7FF1E-6E67-473F-8484-03DC245AF4D2_see|text=|trigger=button}{sub-section}{sub-section:32B7FF1E-6E67-473F-8484-03DC245AF4D2_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:32B7FF1E-6E67-473F-8484-03DC245AF4D2_sam|text=|trigger=button}{sub-section}{sub-section:32B7FF1E-6E67-473F-8484-03DC245AF4D2_sam|class=sIndent|trigger=none}{code:language=javascript}
// get the toolbar at the panel by name
var toolbar = plugins.window.getToolBar("toolbar_1");
// enable/disable the selected item at the index
// REMARK: the pitfall here is that the indexes start at position 1 here
// position 0 is reserved for the toolbar handle!
toolbar.enableItem(1, false);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=93D98F68-11FB-4761-B51E-D4053EF819A7}{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:93D98F68-11FB-4761-B51E-D4053EF819A7_des|text=|trigger=button}{sub-section}{sub-section:93D98F68-11FB-4761-B51E-D4053EF819A7_des|trigger=none|class=sIndent}Remove all Buttons, Checkboxes etc. from the toolbar.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:93D98F68-11FB-4761-B51E-D4053EF819A7_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:93D98F68-11FB-4761-B51E-D4053EF819A7_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:93D98F68-11FB-4761-B51E-D4053EF819A7_ret|text=|trigger=button}{sub-section}{sub-section:93D98F68-11FB-4761-B51E-D4053EF819A7_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:93D98F68-11FB-4761-B51E-D4053EF819A7_see|text=|trigger=button}{sub-section}{sub-section:93D98F68-11FB-4761-B51E-D4053EF819A7_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:93D98F68-11FB-4761-B51E-D4053EF819A7_see|text=|trigger=button}{sub-section}{sub-section:93D98F68-11FB-4761-B51E-D4053EF819A7_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:93D98F68-11FB-4761-B51E-D4053EF819A7_sam|text=|trigger=button}{sub-section}{sub-section:93D98F68-11FB-4761-B51E-D4053EF819A7_sam|class=sIndent|trigger=none}{code:language=javascript}
// get the toolbar at the panel by name
var toolbar = plugins.window.getToolBar("toolbar_0");
// remove all buttons from the toolbar
toolbar.removeAllItems();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=4EA9B64D-8DE0-48E9-A8C6-1AF93D6C1DF8}{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){span}{td}{tr}{tr:id=des}{td}{sub-section:4EA9B64D-8DE0-48E9-A8C6-1AF93D6C1DF8_des|text=|trigger=button}{sub-section}{sub-section:4EA9B64D-8DE0-48E9-A8C6-1AF93D6C1DF8_des|trigger=none|class=sIndent}Remove a Button, CheckBox, ComboBox from the toolbar.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:4EA9B64D-8DE0-48E9-A8C6-1AF93D6C1DF8_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:4EA9B64D-8DE0-48E9-A8C6-1AF93D6C1DF8_prs|trigger=none}index
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:4EA9B64D-8DE0-48E9-A8C6-1AF93D6C1DF8_ret|text=|trigger=button}{sub-section}{sub-section:4EA9B64D-8DE0-48E9-A8C6-1AF93D6C1DF8_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:4EA9B64D-8DE0-48E9-A8C6-1AF93D6C1DF8_see|text=|trigger=button}{sub-section}{sub-section:4EA9B64D-8DE0-48E9-A8C6-1AF93D6C1DF8_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:4EA9B64D-8DE0-48E9-A8C6-1AF93D6C1DF8_see|text=|trigger=button}{sub-section}{sub-section:4EA9B64D-8DE0-48E9-A8C6-1AF93D6C1DF8_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:4EA9B64D-8DE0-48E9-A8C6-1AF93D6C1DF8_sam|text=|trigger=button}{sub-section}{sub-section:4EA9B64D-8DE0-48E9-A8C6-1AF93D6C1DF8_sam|class=sIndent|trigger=none}{code:language=javascript}
// get the toolbar at the panel by name
var toolbar = plugins.window.getToolBar("toolbar_0");
// remove the button, checkbox, combobox, separator or field from the toolbar
// REMARK: the pitfall here is that the indexes start at position 1 here
// position 0 is reserved for the toolbar handle!
toolbar.removeItem(1);
// and validate the changes
// to make them know to the user interface)
toolbar.validate();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=CD55665C-AA16-45F2-A7A8-B377510BAD67}{tr:id=name}{td}h6.selectCheckBox{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}selectCheckBox{span}{span:id=iets|style=float: left;}\(index, boolean){span}{td}{tr}{tr:id=des}{td}{sub-section:CD55665C-AA16-45F2-A7A8-B377510BAD67_des|text=|trigger=button}{sub-section}{sub-section:CD55665C-AA16-45F2-A7A8-B377510BAD67_des|trigger=none|class=sIndent}Set the CheckBox selection.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:CD55665C-AA16-45F2-A7A8-B377510BAD67_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CD55665C-AA16-45F2-A7A8-B377510BAD67_prs|trigger=none}index
boolean
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:CD55665C-AA16-45F2-A7A8-B377510BAD67_ret|text=|trigger=button}{sub-section}{sub-section:CD55665C-AA16-45F2-A7A8-B377510BAD67_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CD55665C-AA16-45F2-A7A8-B377510BAD67_see|text=|trigger=button}{sub-section}{sub-section:CD55665C-AA16-45F2-A7A8-B377510BAD67_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CD55665C-AA16-45F2-A7A8-B377510BAD67_see|text=|trigger=button}{sub-section}{sub-section:CD55665C-AA16-45F2-A7A8-B377510BAD67_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CD55665C-AA16-45F2-A7A8-B377510BAD67_sam|text=|trigger=button}{sub-section}{sub-section:CD55665C-AA16-45F2-A7A8-B377510BAD67_sam|class=sIndent|trigger=none}{code:language=javascript}
// get the toolbar at the panel by namevisible
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip", true, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addButton-String_Function_ObjectArray_Object_String_Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(text, method, arguments, icon, tooltip, enabled) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a Button to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // create a new toolbar
var toolbar = plugins.window.addToolBar('toolbar_0');
// add a button with a text and a method
toolbar.addButton("button", feedback_button);
// add an input array to the button for feedback in the selected method
toolbar.addButton("button", feedback_button, [1, "2", "three"]);
// add an icon to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif");
// add a tooltip to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip");
// show only an icon on the button and disable the button
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip", false);
// make the button non visible
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip", true, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addButton-String_Function_ObjectArray_Object_String_Boolean_Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(text, method, arguments, icon, tooltip, enabled, visible) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a Button to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // create a new toolbar
var toolbar = plugins.window.addToolBar('toolbar_0');
// add a button with a text and a method
toolbar.addButton("button", feedback_button);
// add an input array to the button for feedback in the selected method
toolbar.addButton("button", feedback_button, [1, "2", "three"]);
// add an icon to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif");
// add a tooltip to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip");
// show only an icon on the button and disable the button
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip", false);
// make the button non visible
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip", true, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addCheckBox-String_Function |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a CheckBox to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_1");
// add a checkbox with a text and a method
toolbar.addCheckBox("checkbox", feedback_checkbox);
// add an checkbox and set it's state to selected (not selected by default)
toolbar.addCheckBox("checkbox", feedback_checkbox, true);
// add a tooltip to the checkbox
toolbar.addCheckBox("checkbox", feedback_checkbox, false, "tooltip");
// disable the checkbox and select it
toolbar.addCheckBox("checkbox", feedback_checkbox, true, "tooltip", false);
// make the checkbox non visible
toolbar.addCheckBox("checkbox", feedback_checkbox, false, "tooltip", false, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addCheckBox-String_Function_Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(text, method, selected) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a CheckBox to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_1");
// add a checkbox with a text and a method
toolbar.addCheckBox("checkbox", feedback_checkbox);
// add an checkbox and set it's state to selected (not selected by default)
toolbar.addCheckBox("checkbox", feedback_checkbox, true);
// add a tooltip to the checkbox
toolbar.addCheckBox("checkbox", feedback_checkbox, false, "tooltip");
// disable the checkbox and select it
toolbar.addCheckBox("checkbox", feedback_checkbox, true, "tooltip", false);
// make the checkbox non visible
toolbar.addCheckBox("checkbox", feedback_checkbox, false, "tooltip", false, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addCheckBox-String_Function_Boolean_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(text, method, selected, tooltip) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a CheckBox to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_1");
// add a checkbox with a text and a method
toolbar.addCheckBox("checkbox", feedback_checkbox);
// add an checkbox and set it's state to selected (not selected by default)
toolbar.addCheckBox("checkbox", feedback_checkbox, true);
// add a tooltip to the checkbox
toolbar.addCheckBox("checkbox", feedback_checkbox, false, "tooltip");
// disable the checkbox and select it
toolbar.addCheckBox("checkbox", feedback_checkbox, true, "tooltip", false);
// make the checkbox non visible
toolbar.addCheckBox("checkbox", feedback_checkbox, false, "tooltip", false, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addCheckBox-String_Function_Boolean_String_Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(text, method, selected, tooltip, enabled) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a CheckBox to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_1");
// add a checkbox with a text and a method
toolbar.addCheckBox("checkbox", feedback_checkbox);
// add an checkbox and set it's state to selected (not selected by default)
toolbar.addCheckBox("checkbox", feedback_checkbox, true);
// add a tooltip to the checkbox
toolbar.addCheckBox("checkbox", feedback_checkbox, false, "tooltip");
// disable the checkbox and select it
toolbar.addCheckBox("checkbox", feedback_checkbox, true, "tooltip", false);
// make the checkbox non visible
toolbar.addCheckBox("checkbox", feedback_checkbox, false, "tooltip", false, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addCheckBox-String_Function_Boolean_String_Boolean_Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(text, method, selected, tooltip, enabled, visible) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a CheckBox to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_1");
// add a checkbox with a text and a method
toolbar.addCheckBox("checkbox", feedback_checkbox);
// add an checkbox and set it's state to selected (not selected by default)
toolbar.addCheckBox("checkbox", feedback_checkbox, true);
// add a tooltip to the checkbox
toolbar.addCheckBox("checkbox", feedback_checkbox, false, "tooltip");
// disable the checkbox and select it
toolbar.addCheckBox("checkbox", feedback_checkbox, true, "tooltip", false);
// make the checkbox non visible
toolbar.addCheckBox("checkbox", feedback_checkbox, false, "tooltip", false, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addComboBox-Function_Number_StringArray |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(method, index, values) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a ComboBox to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_2");
// add a combobox with the attached method, selected index and input (list) array
toolbar.addComboBox(feedback_combobox, 0, ["input","array","combobox",1]);
// add a tooltip to the combobox
toolbar.addComboBox(feedback_combobox, 1, ["input","array","combobox",2], "tooltip");
// disable the combobox
toolbar.addComboBox(feedback_combobox, 2, ["input","array","combobox",3], "tooltip", false);
// make the combobox non visible
toolbar.addComboBox(feedback_combobox, 3, ["input","array","combobox",4], "tooltip", false, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addComboBox-Function_Number_StringArray_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(method, index, values, tooltip) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a ComboBox to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_2");
// add a combobox with the attached method, selected index and input (list) array
toolbar.addComboBox(feedback_combobox, 0, ["input","array","combobox",1]);
// add a tooltip to the combobox
toolbar.addComboBox(feedback_combobox, 1, ["input","array","combobox",2], "tooltip");
// disable the combobox
toolbar.addComboBox(feedback_combobox, 2, ["input","array","combobox",3], "tooltip", false);
// make the combobox non visible
toolbar.addComboBox(feedback_combobox, 3, ["input","array","combobox",4], "tooltip", false, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addComboBox-Function_Number_StringArray_String_Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(method, index, values, tooltip, enabled) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a ComboBox to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window. |
|
|
|
| getToolBar1
settheselectionofcheckboxatthe//REMARK: the pitfall here is that the indexes start at position 1 here
// position 0 is reserved for the toolbar handle!
toolbar.selectCheckBox(1, false);
toolbar.selectCheckBox(2, true);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=EA212A3C-AAC2-4820-91A3-21B76B0E7231}{tr:id=name}{td}h6.selectComboBox{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}selectComboBox{span}{span:id=iets|style=float: left;}\(index, rowindex){span}{td}{tr}{tr:id=des}{td}{sub-section:EA212A3C-AAC2-4820-91A3-21B76B0E7231_des|text=|trigger=button}{sub-section}{sub-section:EA212A3C-AAC2-4820-91A3-21B76B0E7231_des|trigger=none|class=sIndent}Select a row of the ComboBox via the index.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:EA212A3C-AAC2-4820-91A3-21B76B0E7231_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:EA212A3C-AAC2-4820-91A3-21B76B0E7231_prs|trigger=none}index
rowindex
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:EA212A3C-AAC2-4820-91A3-21B76B0E7231_ret|text=|trigger=button}{sub-section}{sub-section:EA212A3C-AAC2-4820-91A3-21B76B0E7231_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:EA212A3C-AAC2-4820-91A3-21B76B0E7231_see|text=|trigger=button}{sub-section}{sub-section:EA212A3C-AAC2-4820-91A3-21B76B0E7231_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:EA212A3C-AAC2-4820-91A3-21B76B0E7231_see|text=|trigger=button}{sub-section}{sub-section:EA212A3C-AAC2-4820-91A3-21B76B0E7231_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:EA212A3C-AAC2-4820-91A3-21B76B0E7231_sam|text=|trigger=button}{sub-section}{sub-section:EA212A3C-AAC2-4820-91A3-21B76B0E7231_sam|class=sIndent|trigger=none}{code:language=javascript}
// get the toolbar at the panel by name
var toolbar = plugins.window.getToolBar("toolbar_2");
// set the selection of the combobox at the index
// REMARK: the pitfall here is that the indexes start at position 1 here
// position 0 is reserved for the toolbar handle!
toolbar.selectComboBox(1, 0);
toolbar.selectComboBox(2, 0);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=A7C6798D-5AAD-470A-9933-64DFE30460BE}{tr:id=name}{td}h6.setFieldText{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setFieldText{span}{span:id=iets|style=float: left;}\(index, text){span}{td}{tr}{tr:id=des}{td}{sub-section:A7C6798D-5AAD-470A-9933-64DFE30460BE_des|text=|trigger=button}{sub-section}{sub-section:A7C6798D-5AAD-470A-9933-64DFE30460BE_des|trigger=none|class=sIndent}Set a (default) text of the field at the given index.{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:A7C6798D-5AAD-470A-9933-64DFE30460BE_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A7C6798D-5AAD-470A-9933-64DFE30460BE_prs|trigger=none}index
text
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:A7C6798D-5AAD-470A-9933-64DFE30460BE_ret|text=|trigger=button}{sub-section}{sub-section:A7C6798D-5AAD-470A-9933-64DFE30460BE_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:A7C6798D-5AAD-470A-9933-64DFE30460BE_see|text=|trigger=button}{sub-section}{sub-section:A7C6798D-5AAD-470A-9933-64DFE30460BE_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:A7C6798D-5AAD-470A-9933-64DFE30460BE_see|text=|trigger=button}{sub-section}{sub-section:A7C6798D-5AAD-470A-9933-64DFE30460BE_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:A7C6798D-5AAD-470A-9933-64DFE30460BE_sam|text=|trigger=button}{sub-section}{sub-section:A7C6798D-5AAD-470A-9933-64DFE30460BE_sam|class=sIndent|trigger=none}{code:language=javascript}
// get the toolbar at the panel by name
input (list) array
toolbar.addComboBox(feedback_combobox, 0, ["input","array","combobox",1]);
// add a tooltip to the combobox
toolbar.addComboBox(feedback_combobox, 1, ["input","array","combobox",2], "tooltip");
// disable the combobox
toolbar.addComboBox(feedback_combobox, 2, ["input","array","combobox",3], "tooltip", false);
// make the combobox non visible
toolbar.addComboBox(feedback_combobox, 3, ["input","array","combobox",4], "tooltip", false, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addComboBox-Function_Number_StringArray_String_Boolean_Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(method, index, values, tooltip, enabled, visible) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a ComboBox to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_2");
// add a combobox with the attached method, selected index and input (list) array
toolbar.addComboBox(feedback_combobox, 0, ["input","array","combobox",1]);
// add a tooltip to the combobox
toolbar.addComboBox(feedback_combobox, 1, ["input","array","combobox",2], "tooltip");
// disable the combobox
toolbar.addComboBox(feedback_combobox, 2, ["input","array","combobox",3], "tooltip", false);
// make the combobox non visible
toolbar.addComboBox(feedback_combobox, 3, ["input","array","combobox",4], "tooltip", false, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addField-Function_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a Field to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_3");
// add a field with the attached method and a default text
toolbar.addField(feedback_field, null);
// set the length of the field.
// default length = 8 when length is not set or set to 0
toolbar.addField(feedback_field, "field", 0, "tooltip");
// add a tooltip to the field
toolbar.addField(feedback_field, null, 10, "tooltip");
// disable the field
toolbar.addField(feedback_field, "field", 5, "tooltip", false);
// make the field non visible
toolbar.addField(feedback_field, "field", 0, "tooltip", false, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addField-Function_String_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(method, text, length) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a Field to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window. |
|
|
|
| getToolBar
set add a field with the attached |
|
|
|
| textofthefieldat the indextext
toolbar.addField(feedback_field, null);
// |
|
|
|
| REMARK:pitfallhere is that the indexes start at position 1 hereof the field.
// default length = 8 when length is not set or set to 0
toolbar.addField(feedback_field, "field", 0, "tooltip");
// |
|
|
|
| position0isreserved fortoolbarhandle!
setFieldText1"new text 1null, 10, "tooltip");
// disable the field
toolbar. |
|
|
|
| setFieldText2newtext2);
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7CD09D32-2517-41F0-A8D4-07C6617E727A}{tr:id=name}{td}h6.validate{td}{tr}{tr:id=sig}{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}{td}{tr}{tr:id=des}{td}{sub-section:7CD09D32-2517-41F0-A8D4-07C6617E727A_des|text=|trigger=button}{sub-section}{sub-section:7CD09D32-2517-41F0-A8D4-07C6617E727A_des|trigger=none|class=sIndent}You need to call this method after adding or removing items to/from the toolbar.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:7CD09D32-2517-41F0-A8D4-07C6617E727A_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7CD09D32-2517-41F0-A8D4-07C6617E727A_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7CD09D32-2517-41F0-A8D4-07C6617E727A_ret|text=|trigger=button}{sub-section}{sub-section:7CD09D32-2517-41F0-A8D4-07C6617E727A_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7CD09D32-2517-41F0-A8D4-07C6617E727A_see|text=|trigger=button}{sub-section}{sub-section:7CD09D32-2517-41F0-A8D4-07C6617E727A_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7CD09D32-2517-41F0-A8D4-07C6617E727A_see|text=|trigger=button}{sub-section}{sub-section:7CD09D32-2517-41F0-A8D4-07C6617E727A_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7CD09D32-2517-41F0-A8D4-07C6617E727A_sam|text=|trigger=button}{sub-section}{sub-section:7CD09D32-2517-41F0-A8D4-07C6617E727A_sam|class=sIndent|trigger=none}{code:language=javascript}
// get the toolbar at the panel by name, false);
// make the field non visible
toolbar.addField(feedback_field, "field", 0, "tooltip", false, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addField-Function_String_Number_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(method, text, length, tooltip) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a Field to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_3");
// add a field with the attached method and a default text
toolbar.addField(feedback_field, null);
// set the length of the field.
// default length = 8 when length is not set or set to 0
toolbar.addField(feedback_field, "field", 0, "tooltip");
// add a tooltip to the field
toolbar.addField(feedback_field, null, 10, "tooltip");
// disable the field
toolbar.addField(feedback_field, "field", 5, "tooltip", false);
// make the field non visible
toolbar.addField(feedback_field, "field", 0, "tooltip", false, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addField-Function_String_Number_String_Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(method, text, length, tooltip, enabled) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a Field to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_3");
// add a field with the attached method and a default text
toolbar.addField(feedback_field, null);
// set the length of the field.
// default length = 8 when length is not set or set to 0
toolbar.addField(feedback_field, "field", 0, "tooltip");
// add a tooltip to the field
toolbar.addField(feedback_field, null, 10, "tooltip");
// disable the field
toolbar.addField(feedback_field, "field", 5, "tooltip", false);
// make the field non visible
toolbar.addField(feedback_field, "field", 0, "tooltip", false, false); |
|
|
|
|
Table Body (tbody) |
---|
id | addField-Function_String_Number_String_Boolean_Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
(method, text, length, tooltip, enabled, visible) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a Field to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_3");
// add a field with the attached method and a default text
toolbar.addField(feedback_field, null);
// set the length of the field.
// default length = 8 when length is not set or set to 0
toolbar.addField(feedback_field, "field", 0, "tooltip");
// add a tooltip to the field
toolbar.addField(feedback_field, null, 10, "tooltip");
// disable the field
toolbar.addField(feedback_field, "field", 5, "tooltip", false);
// make the field non visible
toolbar.addField(feedback_field, "field", 0, "tooltip", false, false); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Add a Separator to the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_0");
// add a button
toolbar.addButton("button", feedback_button);
// add a separator
toolbar.addSeparator();
// add a checkbox
toolbar.addCheckBox("checkbox", feedback_checkbox); |
|
|
|
|
Table Body (tbody) |
---|
id | enableItem-Number_Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Enable/disable the item at the specified index. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_1");
// add a checkbox
toolbar.addCheckBox("checkbox", feedback_checkbox);
// disable the button
// REMARK: the pitfall here is that the indexes start at position 1 here
// position 0 is reserved for the toolbar handle!
toolbar.enableItem(1, false); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Remove all Buttons, Checkboxes etc. from the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_1");
// add a button
toolbar.addButton("button", feedback_button);
// add a checkbox
toolbar.addCheckBox("checkbox", feedback_checkbox);
// remove all items from the toolbar
toolbar.removeAllItems(); |
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Remove a Button, CheckBox, ComboBox from the toolbar. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_1");
// add a button
toolbar.addButton("button", feedback_button);
// add a checkbox
toolbar.addCheckBox("checkbox", feedback_checkbox);
// remove the first item (the button in this case) from the toolbar
// REMARK: the pitfall here is that the indexes start at position 1 here
// position 0 is reserved for the toolbar handle!
toolbar.removeItem(1); |
|
|
|
|
Table Body (tbody) |
---|
id | selectCheckBox-Number_Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Set the CheckBox selection. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_1");
// add a checkbox
toolbar.addCheckBox("checkbox 1", feedback_checkbox);
// add another checkbox
toolbar.addCheckBox("checkbox 2", feedback_checkbox);
// set the selection of the checkboxes
// REMARK: the pitfall here is that the indexes start at position 1 here
// position 0 is reserved for the toolbar handle!
toolbar.selectCheckBox(1, false);
toolbar.selectCheckBox(2, true); |
|
|
|
|
Table Body (tbody) |
---|
id | selectComboBox-Number_Number |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Select a row of the ComboBox via the index. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window. |
|
|
|
| getToolBar01");
// add a combobox
toolbar.addComboBox(feedback_combobox, 1, ["one", "two", "three"]);
// |
|
|
|
| remove the button, checkbox, combobox, separator or field from the toolbar add another combobox
toolbar.addComboBox(feedback_combobox, 2, [1, 2, 3, 4, 5]);
// set the selection of the comboboxes
// REMARK: the pitfall here is that the indexes start at position 1 here
// position 0 is reserved for the toolbar handle!
toolbar. |
|
|
|
| removeItem
and validate the changes entry "one" will be selected in the first combobox
toolbar.selectComboBox(2, 3); // entry |
|
|
|
| tomakethemknowtouser interface)
toolbar.validate();
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=7F0770BD-25C8-4E8B-BDD7-F83B2F737DF3}{tr:id=name}{td}h6.visibleItem{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}visibleItem{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:7F0770BD-25C8-4E8B-BDD7-F83B2F737DF3_des|text=|trigger=button}{sub-section}{sub-section:7F0770BD-25C8-4E8B-BDD7-F83B2F737DF3_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:7F0770BD-25C8-4E8B-BDD7-F83B2F737DF3_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:7F0770BD-25C8-4E8B-BDD7-F83B2F737DF3_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:7F0770BD-25C8-4E8B-BDD7-F83B2F737DF3_ret|text=|trigger=button}{sub-section}{sub-section:7F0770BD-25C8-4E8B-BDD7-F83B2F737DF3_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:7F0770BD-25C8-4E8B-BDD7-F83B2F737DF3_see|text=|trigger=button}{sub-section}{sub-section:7F0770BD-25C8-4E8B-BDD7-F83B2F737DF3_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:7F0770BD-25C8-4E8B-BDD7-F83B2F737DF3_see|text=|trigger=button}{sub-section}{sub-section:7F0770BD-25C8-4E8B-BDD7-F83B2F737DF3_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:7F0770BD-25C8-4E8B-BDD7-F83B2F737DF3_sam|text=|trigger=button}{sub-section}{sub-section:7F0770BD-25C8-4E8B-BDD7-F83B2F737DF3_sam|class=sIndent|trigger=none}{code:language=javascript}
// get the toolbar at the panel by name
Table Body (tbody) |
---|
id | setFieldText-Number_String |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
setFieldText |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Set a (default) text of the field at the given index. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window.addToolBar("toolbar_1");
// add a field
toolbar.addField(feedback_field, "field one");
// add another field
toolbar.addField(feedback_field , "field_two");
// set the text of the fields
// REMARK: the pitfall here is that the indexes start at position 1 here
// position 0 is reserved for the toolbar handle!
toolbar.setFieldText(1, "new text 1");
toolbar.setFieldText(2, "new text 2"); |
|
|
|
|
Table Body (tbody) |
---|
id | visibleItem-Number_Boolean |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Div |
---|
| Make the item at the specified index visible/invisible. |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample Div |
---|
| Code Block |
---|
| // add a toolbar
var toolbar = plugins.window. |
|
|
|
| getToolBar21");
// add a button
toolbar.addButton("button", feedback_button);
// add a checkbox
toolbar.addCheckBox("checkbox", feedback_checkbox);
// make the |
|
|
|
| selectedat indexvisible/invisible
// REMARK: the pitfall here is that the indexes start at position 1 here
// position 0 is reserved for the toolbar handle!
toolbar.visibleItem(1, false); |
|
|
|
|
{code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table} |