Table Row (tr) |
---|
| Table Head (th) |
---|
| Method Details |
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| addButton |
Span |
---|
| (text, method, [arguments], [icon], [tooltip], [enabled], [visible]) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Add a Button to the toolbar. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters text method [arguments] [icon] [tooltip] [enabled] [visible] |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// 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);
// |
|
|
|
| addanicon to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif");
// add a tooltipthe changes
// to make them know to the user |
|
|
|
| buttonaddButton("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);
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| addCheckBox |
Span |
---|
| (text, method, [selected], [tooltip], [enabled], [visible]) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Add a CheckBox to the toolbar. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters text method [selected] [tooltip] [enabled] [visible] |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
| separator.addSeparator();//makethebuttonnonvisible.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip.",true, false = plugins.window.addToolBar("toolbar_1", "toolbar_1");
// add a checkbox with a text and a method
toolbar.addCheckBox("checkbox", feedback_button);
// |
|
|
|
| andvalidatethechanges// to make them know to the user interface)
toolbar.validate();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=addCheckBox|class=node}{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:addCheckBox_des|text=|trigger=button}{sub-section}{sub-section:addCheckBox_des|trigger=none|class=sIndent}Add a CheckBox to the toolbar.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:addCheckBox_snc|text=|trigger=button}{sub-section}{sub-section:addCheckBox_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:addCheckBox_prs|text=|trigger=button}{sub-section}{sub-section:addCheckBox_prs|trigger=none|class=sIndent}text
method
\[selected\]
\[tooltip\]
\[enabled\]
\[visible\]
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:addCheckBox_ret|text=|trigger=button}{sub-section}{sub-section:addCheckBox_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:addCheckBox_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:addCheckBox_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:addCheckBox_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:addCheckBox_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:addCheckBox_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:addCheckBox_sam|trigger=none}{code:language=javascript}
// add a toolbar with a name and internal name
var toolbar = plugins.window.addToolBar("toolbar_1", "toolbar_1set 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();
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| addComboBox |
Span |
---|
| (method, index, input, [tooltip], [enabled], [visible]) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Add a ComboBox to the toolbar. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters method index input [tooltip] [enabled] [visible] |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// add a toolbar with a name and internal name at the given row index
var toolbar = plugins.window.addToolBar("toolbar_2", "toolbar_2", 3);
// add a combobox with the attached method, selected index and input (list) array
toolbar.addComboBox(feedback_button, 0, ["input","array","combobox",1]);
// add a tooltip to the combobox
toolbar.addComboBox(feedback_button, 1, ["input","array","combobox",2], "tooltip");
// add a |
|
|
|
| checkbox with a text and a methodseparator
toolbar.addSeparator();
// disable the combobox
toolbar. |
|
|
|
| addCheckBox("checkbox", feedback_buttonaddComboBox(feedback_button, 2, ["input","array","combobox",3], "tooltip",false);
// |
|
|
|
| addancheckboxand set it's state to selected (not selected by default)
toolbar.addCheckBox("checkbox", non visible
toolbar.addComboBox(feedback_button, |
|
|
|
| true);
// add a tooltip to the checkbox
toolbar.addCheckBox("checkbox", feedback_button, false3, ["input","array","combobox",4], "tooltip",false, false);
// |
|
|
|
| addaseparator
toolbar.addSeparator();
disablethecheckboxandselectit
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}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=addComboBox|class=node}{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:addComboBox_des|text=|trigger=button}{sub-section}{sub-section:addComboBox_des|trigger=none|class=sIndent}Add a ComboBox to the toolbar.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:addComboBox_snc|text=|trigger=button}{sub-section}{sub-section:addComboBox_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:addComboBox_prs|text=|trigger=button}{sub-section}{sub-section:addComboBox_prs|trigger=none|class=sIndent}method
index
input
\[tooltip\]
\[enabled\]
\[visible\]
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:addComboBox_ret|text=|trigger=button}{sub-section}{sub-section:addComboBox_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:addComboBox_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:addComboBox_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:addComboBox_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:addComboBox_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:addComboBox_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:addComboBox_sam|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_2", "toolbar_2", 3);
// add a combobox with the attached method, selected index and input (list) array
toolbar.addComboBox(feedback_button, 0, ["input","array","combobox",1]);
// add a tooltip to the combobox
toolbar.addComboBox(feedback_button, 1, ["input","array","combobox",2], "tooltip");
// add a separator
toolbar.addSeparator();
// disable the combobox
toolbar.addComboBox(feedback_button, 2, ["input","array","combobox",3], "tooltip",false);
// make the combobox non visible
toolbar.addComboBox(feedback_button, 3, ["input","array","combobox",4], "tooltip",false, false);
// and validate the changes
// to make them know to the user interface)
toolbar.validate();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=addField|class=node}{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:addField_des|text=|trigger=button}{sub-section}{sub-section:addField_des|trigger=none|class=sIndent}Add a Field to the toolbar.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:addField_snc|text=|trigger=button}{sub-section}{sub-section:addField_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:addField_prs|text=|trigger=button}{sub-section}{sub-section:addField_prs|trigger=none|class=sIndent}method
text
\[tooltip\]
\[enabled\]
\[visible\]
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:addField_ret|text=|trigger=button}{sub-section}{sub-section:addField_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:addField_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:addField_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:addField_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:addField_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:addField_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:addField_sam|trigger=none}{code:language=javascript}
// add a toolbar with a name and internal name at the given row indexthe user interface)
toolbar.validate();
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| addField |
Span |
---|
| (method, text, [tooltip], [enabled], [visible]) |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Add a Field to the toolbar. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters method text [tooltip] [enabled] [visible] |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// 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();
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| addSeparator |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Add a Separator to the toolbar. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// 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();
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| enableItem |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Replace with description |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// get the toolbar at the panel by name
var toolbar = plugins.window. |
|
|
|
| addToolBar3", "toolbar_3", 4add a field with attachedmethodandadefault text
toolbar.addField(feedback_button, null);
addaseparator
toolbar.addSeparator();
// set the length of the field. pitfall here is that the indexes start at position 1 here
// |
|
|
|
| default length = 8 when lengthnotsetorsetto0
addFieldfeedback_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( Table Body (tbody) |
---|
id | removeAllItems |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| removeAllItems |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Remove all Buttons, Checkboxes etc. from the toolbar. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// get the toolbar at the panel by name
var toolbar = plugins.window.getToolBar("toolbar_0");
// |
|
|
|
| makethefieldnonvisible
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}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=addSeparator|class=node}{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:addSeparator_des|text=|trigger=button}{sub-section}{sub-section:addSeparator_des|trigger=none|class=sIndent}Add a Separator to the toolbar.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:addSeparator_snc|text=|trigger=button}{sub-section}{sub-section:addSeparator_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:addSeparator_prs|text=|trigger=button}{sub-section}{sub-section:addSeparator_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:addSeparator_ret|text=|trigger=button}{sub-section}{sub-section:addSeparator_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:addSeparator_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:addSeparator_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:addSeparator_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:addSeparator_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:addSeparator_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:addSeparator_sam|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}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=enableItem|class=node}{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:enableItem_des|text=|trigger=button}{sub-section}{sub-section:enableItem_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:enableItem_snc|text=|trigger=button}{sub-section}{sub-section:enableItem_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:enableItem_prs|text=|trigger=button}{sub-section}{sub-section:enableItem_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:enableItem_ret|text=|trigger=button}{sub-section}{sub-section:enableItem_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:enableItem_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:enableItem_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:enableItem_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:enableItem_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:enableItem_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:enableItem_sam|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}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeAllItems|class=node}{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:removeAllItems_des|text=|trigger=button}{sub-section}{sub-section:removeAllItems_des|trigger=none|class=sIndent}Remove all Buttons, Checkboxes etc. from the toolbar.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:removeAllItems_snc|text=|trigger=button}{sub-section}{sub-section:removeAllItems_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:removeAllItems_prs|text=|trigger=button}{sub-section}{sub-section:removeAllItems_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:removeAllItems_ret|text=|trigger=button}{sub-section}{sub-section:removeAllItems_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeAllItems_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeAllItems_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeAllItems_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeAllItems_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeAllItems_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeAllItems_sam|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}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeItem|class=node}{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:removeItem_des|text=|trigger=button}{sub-section}{sub-section:removeItem_des|trigger=none|class=sIndent}Remove a Button, CheckBox, ComboBox from the toolbar.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:removeItem_snc|text=|trigger=button}{sub-section}{sub-section:removeItem_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeItem_prs|text=|trigger=button}{sub-section}{sub-section:removeItem_prs|trigger=none|class=sIndent}index
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeItem_ret|text=|trigger=button}{sub-section}{sub-section:removeItem_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeItem_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeItem_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeItem_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeItem_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeItem_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeItem_sam|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}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=selectCheckBox|class=node}{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:selectCheckBox_des|text=|trigger=button}{sub-section}{sub-section:selectCheckBox_des|trigger=none|class=sIndent}Set the CheckBox selection.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:selectCheckBox_snc|text=|trigger=button}{sub-section}{sub-section:selectCheckBox_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:selectCheckBox_prs|text=|trigger=button}{sub-section}{sub-section:selectCheckBox_prs|trigger=none|class=sIndent}index
boolean
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:selectCheckBox_ret|text=|trigger=button}{sub-section}{sub-section:selectCheckBox_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:selectCheckBox_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:selectCheckBox_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:selectCheckBox_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:selectCheckBox_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:selectCheckBox_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:selectCheckBox_sam|trigger=none}{code:language=javascript}
// get the toolbar at the panel by name
var toolbar = plugins.window.getToolBar("toolbar_1");
// set the selection of the checkbox 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.selectCheckBox(1, false);
toolbar.selectCheckBox(2, true);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=selectComboBox|class=node}{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:selectComboBox_des|text=|trigger=button}{sub-section}{sub-section:selectComboBox_des|trigger=none|class=sIndent}Select a row of the ComboBox via the index.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:selectComboBox_snc|text=|trigger=button}{sub-section}{sub-section:selectComboBox_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:selectComboBox_prs|text=|trigger=button}{sub-section}{sub-section:selectComboBox_prs|trigger=none|class=sIndent}index
rowindex
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:selectComboBox_ret|text=|trigger=button}{sub-section}{sub-section:selectComboBox_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:selectComboBox_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:selectComboBox_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:selectComboBox_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:selectComboBox_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:selectComboBox_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:selectComboBox_sam|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}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setFieldText|class=node}{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:setFieldText_des|text=|trigger=button}{sub-section}{sub-section:setFieldText_des|trigger=none|class=sIndent}Set a (default) text of the field at the given index.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:setFieldText_snc|text=|trigger=button}{sub-section}{sub-section:setFieldText_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:setFieldText_prs|text=|trigger=button}{sub-section}{sub-section:setFieldText_prs|trigger=none|class=sIndent}index
text
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:setFieldText_ret|text=|trigger=button}{sub-section}{sub-section:setFieldText_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:setFieldText_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setFieldText_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:setFieldText_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setFieldText_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:setFieldText_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setFieldText_sam|trigger=none}{code:language=javascript}
// get the toolbar at the panel by name
var toolbar = plugins.window.getToolBar("toolbar_3");
// set the text of the field 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.setFieldText(1, "new text 1");
toolbar.setFieldText(2, "new text 2");
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=visibleItem|class=node}{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:visibleItem_des|text=|trigger=button}{sub-section}{sub-section:visibleItem_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:visibleItem_snc|text=|trigger=button}{sub-section}{sub-section:visibleItem_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:visibleItem_prs|text=|trigger=button}{sub-section}{sub-section:visibleItem_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:visibleItem_ret|text=|trigger=button}{sub-section}{sub-section:visibleItem_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:visibleItem_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:visibleItem_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:visibleItem_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:visibleItem_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:visibleItem_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:visibleItem_sam|trigger=none}{code:language=javascript}the toolbar
toolbar.removeAllItems();
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| removeItem |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Remove a Button, CheckBox, ComboBox from the toolbar. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters index |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// 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();
|
|
|
|
|
Table Body (tbody) |
---|
id | selectCheckBox |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| selectCheckBox |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Set the CheckBox selection. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters index boolean |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// get the toolbar at the panel by name
var toolbar = plugins.window.getToolBar("toolbar_1");
// set the selection of the checkbox 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.selectCheckBox(1, false);
toolbar.selectCheckBox(2, true);
|
|
|
|
|
Table Body (tbody) |
---|
id | selectComboBox |
---|
class | node |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| selectComboBox |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Select a row of the ComboBox via the index. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters index rowindex |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// 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);
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
setFieldText |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| setFieldText |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Set a (default) text of the field at the given index. |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Parameters index text |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// get the toolbar at the panel by name
var toolbar = plugins.window.getToolBar("toolbar_3");
// set the text of the field 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.setFieldText(1, "new text 1");
toolbar.setFieldText(2, "new text 2");
|
|
|
|
|
Table Body (tbody) |
---|
| Table Row (tr) |
---|
| Table Cell (td) |
---|
Span |
---|
style | float: left; margin-right: 5px; |
---|
| void |
Span |
---|
style | float: left; font-weight: bold; |
---|
id | iets |
---|
| visibleItem |
|
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Replace with description |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Returns void |
|
Table Row (tr) |
---|
| Table Cell (td) |
---|
Sample
Div |
---|
| Code Block |
---|
|
// get the toolbar at the panel by name
var toolbar = plugins.window.getToolBar("toolbar_2");
// make the selected item at the index visible/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}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table} |