Child pages
  • Popup
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Unknown macro: {sub-section}


Unknown macro: {table}

{column:width=80px}{column}{column}{column}

Unknown macro: {tr}
Unknown macro: {th}

Method Summary

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

CheckBox

Unknown macro: {td}

addCheckBox(index)
Add the Checkbox at the selected index (starting at 0) or add it at the end (empty).

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

MenuItem

Unknown macro: {td}

addItem(index)
Add the item at the selected index (starting at 0) or add it at the end (empty).

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

RadioButton

Unknown macro: {td}

addRadioButton(index)
Add the Radiobutton at the selected index (starting at 0) or add it at the end (empty).

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

void

Unknown macro: {td}

addRadioGroup()
Add a Radiogroup for the Radiobuttons.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

void

Unknown macro: {td}

addSeparator(index)
Add the separator at the selected index (starting at 0) or add it at the end (empty).

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Menu

Unknown macro: {td}

addSubMenu(index)
Add the submenu at the selected index (starting at 0) or add it at the end (empty).

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

CheckBox

Unknown macro: {td}

getCheckBox(index)
Get the Checkbox at the selected index (starting at 0).

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

MenuItem

Unknown macro: {td}

getItem(index)
Get the item at the selected index (starting at 0).

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Number

Unknown macro: {td}

getItemCount()
Get the number of items in the popup.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

RadioButton

Unknown macro: {td}

getRadioButton(index)
Get the Radiobutton at the selected index (starting at 0).

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

Menu

Unknown macro: {td}

getSubMenu(index)
Get the submenu at the selected index (starting at 0).

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

void

Unknown macro: {td}

removeAllItems()
Remove all items from the popup.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

void

Unknown macro: {td}

removeItem(index 1, index 2-n)
Remove the item(s) at the selected index/indices.

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}

void

Unknown macro: {td}

show(element, x, y)
Show the popup below the element or add x an y values relative to the element.


Unknown macro: {table}

{column:width=100%}{column}

Unknown macro: {tr}
Unknown macro: {th}

Method Details

Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
addCheckBox
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

CheckBox

Unknown macro: {span}

addCheckBox

Unknown macro: {span}

(index)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {sub-section}
Unknown macro: {sub-section}

Add the Checkbox at the selected index (starting at 0) or add it at the end (empty)...

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {sub-section}
Unknown macro: {div}
Unknown macro: {sub-section}

[index]

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {sub-section}
Unknown macro: {sub-section}

CheckBox

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {sub-section}
Unknown macro: {sub-section}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
addItem
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

MenuItem

Unknown macro: {span}

addItem

Unknown macro: {span}

(index)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {sub-section}
Unknown macro: {sub-section}

Add the item at the selected index (starting at 0) or add it at the end (empty)...

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {sub-section}
Unknown macro: {div}
Unknown macro: {sub-section}

[index]

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {sub-section}
Unknown macro: {sub-section}

MenuItem

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {sub-section}
Unknown macro: {sub-section}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
addRadioButton
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

RadioButton

Unknown macro: {span}

addRadioButton

Unknown macro: {span}

(index)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {sub-section}
Unknown macro: {sub-section}

Add the Radiobutton at the selected index (starting at 0) or add it at the end (empty)...

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {sub-section}
Unknown macro: {div}
Unknown macro: {sub-section}

[index]

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {sub-section}
Unknown macro: {sub-section}

RadioButton

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {sub-section}
Unknown macro: {sub-section}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
addRadioGroup
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

void

Unknown macro: {span}

addRadioGroup

Unknown macro: {span}

()

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {sub-section}
Unknown macro: {sub-section}

Add a Radiogroup for the Radiobuttons...

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {sub-section}
Unknown macro: {div}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {sub-section}
Unknown macro: {sub-section}

void

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {sub-section}
Unknown macro: {sub-section}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
addSeparator
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

void

Unknown macro: {span}

addSeparator

Unknown macro: {span}

(index)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {sub-section}
Unknown macro: {sub-section}

Add the separator at the selected index (starting at 0) or add it at the end (empty)...

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {sub-section}
Unknown macro: {div}
Unknown macro: {sub-section}

[index]

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {sub-section}
Unknown macro: {sub-section}

void

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {sub-section}
Unknown macro: {sub-section}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
addSubMenu
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Menu

Unknown macro: {span}

addSubMenu

Unknown macro: {span}

(index)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {sub-section}
Unknown macro: {sub-section}

Add the submenu at the selected index (starting at 0) or add it at the end (empty)...

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {sub-section}
Unknown macro: {div}
Unknown macro: {sub-section}

[index]

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {sub-section}
Unknown macro: {sub-section}

Menu

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {sub-section}
Unknown macro: {sub-section}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
getCheckBox
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

CheckBox

Unknown macro: {span}

getCheckBox

Unknown macro: {span}

(index)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {sub-section}
Unknown macro: {sub-section}

Get the Checkbox at the selected index (starting at 0)...

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {sub-section}
Unknown macro: {div}
Unknown macro: {sub-section}

index

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {sub-section}
Unknown macro: {sub-section}

CheckBox

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {sub-section}
Unknown macro: {sub-section}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
getItem
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

MenuItem

Unknown macro: {span}

getItem

Unknown macro: {span}

(index)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {sub-section}
Unknown macro: {sub-section}

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

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {sub-section}
Unknown macro: {div}
Unknown macro: {sub-section}

index

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {sub-section}
Unknown macro: {sub-section}

MenuItem

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {sub-section}
Unknown macro: {sub-section}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
getItemCount
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Number

Unknown macro: {span}

getItemCount

Unknown macro: {span}

()

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {sub-section}
Unknown macro: {sub-section}

Get the number of items in the popup...

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {sub-section}
Unknown macro: {div}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {sub-section}
Unknown macro: {sub-section}

Number

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {sub-section}
Unknown macro: {sub-section}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
getRadioButton
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

RadioButton

Unknown macro: {span}

getRadioButton

Unknown macro: {span}

(index)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {sub-section}
Unknown macro: {sub-section}

Get the Radiobutton at the selected index (starting at 0)...

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {sub-section}
Unknown macro: {div}
Unknown macro: {sub-section}

index

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {sub-section}
Unknown macro: {sub-section}

RadioButton

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {sub-section}
Unknown macro: {sub-section}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
getSubMenu
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

Menu

Unknown macro: {span}

getSubMenu

Unknown macro: {span}

(index)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {sub-section}
Unknown macro: {sub-section}

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

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {sub-section}
Unknown macro: {div}
Unknown macro: {sub-section}

index

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {sub-section}
Unknown macro: {sub-section}

Menu

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {sub-section}
Unknown macro: {sub-section}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
removeAllItems
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

void

Unknown macro: {span}

removeAllItems

Unknown macro: {span}

()

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {sub-section}
Unknown macro: {sub-section}

Remove all items from the popup...

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {sub-section}
Unknown macro: {div}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {sub-section}
Unknown macro: {sub-section}

void

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {sub-section}
Unknown macro: {sub-section}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
removeItem
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

void

Unknown macro: {span}

removeItem

Unknown macro: {span}

(index 1, index 2-n)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {sub-section}
Unknown macro: {sub-section}

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

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {sub-section}
Unknown macro: {div}
Unknown macro: {sub-section}

index 1
[index 2-n]

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {sub-section}
Unknown macro: {sub-section}

void

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {sub-section}
Unknown macro: {sub-section}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {tbody}
Unknown macro: {tr}
Unknown macro: {td}
show
Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {span}

void

Unknown macro: {span}

show

Unknown macro: {span}

(element, x, y)

Unknown macro: {tr}
Unknown macro: {td}
Unknown macro: {sub-section}
Unknown macro: {sub-section}

Show the popup below the element or add x an y values relative to the element...

Unknown macro: {tr}
Unknown macro: {td}

Parameters

Unknown macro: {sub-section}
Unknown macro: {div}
Unknown macro: {sub-section}

element
[x]
[y]

Unknown macro: {tr}
Unknown macro: {td}

Returns

Unknown macro: {sub-section}
Unknown macro: {sub-section}

void

Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

Also see

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {builder-show}
Unknown macro: {tr}
Unknown macro: {td}

External links

Unknown macro: {sub-section}
Unknown macro: {sub-section}
Unknown macro: {tr}
Unknown macro: {td}

Sample

Unknown macro: {sub-section}
Unknown macro: {sub-section}
// create a popup that will show at the right click event of the selected element(s)
// an element can be a field, label, button and even a bean
var popup = plugins.menubar.setPopup(elements.field, elements.label, elements.panel);

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

return;

// create a (normal) popup at the 'on action' event of the button
// in this case the popup is created after clicking/selecting the button.
var popup = plugins.menubar.setPopup();

// you can add a menuitem, checkbox, radiobutton (group) like
// you would with a 'normal' menu. The result from the method you call is also
// the same

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new popup
var item = popup.addItem();

// create the settings for the specified menu item
// minimum settings are the text and method properties
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
item.set("item",feedback);

var checkbox = popup.addCheckBox();

checkbox.set("checkbox",feedback);

popup.addRadioGroup();

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 1",feedback);

var radiobutton = popup.addRadioButton();

radiobutton.set("radiobutton 2",feedback);

// add a (first) submenu
var submenu1 = popup.addSubMenu();
submenu1.set("submenu 1");
submenu1.addItem().set("sub item 1",feedback);

// add a (second) submenu
var submenu2 = popup.addSubMenu();
submenu2.set("submenu 2");
submenu2.addItem().set("sub item 2",feedback);

// after creating the complete popup you probably want to show it
// you need to add the element that you want to show the popup at
// by default the popup will show left aligned with the element and
// direct under the element
popup.show(elements.add_normal_popup);

// show the popup menu related to the selected element
// the optional x and y arguments change the location of the popup
// relative to the element.
// popup.show(elements.add_normal_popup, 5, -10);
Unknown macro: {tr}
Unknown macro: {td}
  • No labels