Child pages
  • MenuBar

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Hidden
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE


HTML Table
classservoy sSummery
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summery
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Menu
Table Cell (td)
#addMenu([index])
Add the menu at the selected index (starting at 0) or add it at the end (empty).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Menu
Table Cell (td)
#getMenu(index)
Get the menu at the selected index (starting at 0).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#getMenuCount()
Get the number of (top level) menu's.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#getMenuIndexByText(menuName)
Retrieve the index of the item by text.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#removeAllMenus()
Remove all menus from the menubar.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#removeMenu(index 1, [index 2-n])
Remove the menu(s) at the selected index/indices.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#reset()
Reset the menubar to the default.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#setVisible(visible)
Show/hide the menu bar
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#validate()
Use this when your add/remove/edit operation won't refresh.

HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Method Details
Table Body (tbody)
idaddMenu
classnode
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Menu
Span
stylefloat: left; font-weight: bold;
idiets
addMenu
Span
stylefloat: left;
idiets
([index])
Table Row (tr)
iddes
Table Cell (td)
Add the menu at the selected index (starting at 0) or add it at the end (empty).
Table Row (tr)
idprs
Table Cell (td)
Parameters
[index]
Table Row (tr)
idret
Table Cell (td)
Returns
Menu
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
// Note: method addMenu only works in the smart client.

// Add the menu at the selected index (starting at 0) or add it at the end (empty).
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetMenu
classnode
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Menu
Span
stylefloat: left; font-weight: bold;
idiets
getMenu
Span
stylefloat: left;
idiets
(index)
Table Row (tr)
iddes
Table Cell (td)
Get the menu at the selected index (starting at 0).
Table Row (tr)
idprs
Table Cell (td)
Parameters
index
Table Row (tr)
idret
Table Cell (td)
Returns
Menu
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
// Note: method getMenu only works in the smart client.

// Get the menu at the selected index (starting at 0).
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetMenuCount
classnode
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Number
Span
stylefloat: left; font-weight: bold;
idiets
getMenuCount
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Get the number of (top level) menu's.
Table Row (tr)
idret
Table Cell (td)
Returns
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
// Note: method getMenuCount only works in the smart client.

// Get the number of (top level) menu's.
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetMenuIndexByText
classnode
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
Number
Span
stylefloat: left; font-weight: bold;
idiets
getMenuIndexByText
Span
stylefloat: left;
idiets
(menuName)
Table Row (tr)
iddes
Table Cell (td)
Retrieve the index of the item by text.
Table Row (tr)
idprs
Table Cell (td)
Parameters
menuName
Table Row (tr)
idret
Table Cell (td)
Returns
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
// Note: method getMenuIndexByText only works in the smart client.

// Retrieve the index of the item by text.
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idremoveAllMenus
classnode
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
removeAllMenus
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Remove all menus from the menubar.
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
// Note: method removeAllMenus only works in the smart client.

// Remove all menus from the menubar.
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idremoveMenu
classnode
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
removeMenu
Span
stylefloat: left;
idiets
(index 1, [index 2-n])
Table Row (tr)
iddes
Table Cell (td)
Remove the menu(s) at the selected index/indices.
Table Row (tr)
idprs
Table Cell (td)
Parameters
index 1
[index 2-n]
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
// Note: method removeMenu only works in the smart client.

// Remove the menu(s) at the selected index/indices.
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idreset
classnode
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
reset
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Reset the menubar to the default.
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
// Note: method reset only works in the smart client.

// Reset the menubar to the default.
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idsetVisible
classnode
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
setVisible
Span
stylefloat: left;
idiets
(visible)
Table Row (tr)
iddes
Table Cell (td)
Show/hide the menu bar
Table Row (tr)
idprs
Table Cell (td)
Parameters
visible
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
// Note: method setVisible only works in the smart client.

// Show/hide the menu bar
Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idvalidate
classnode
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylefloat: left; margin-right: 5px;
void
Span
stylefloat: left; font-weight: bold;
idiets
validate
Span
stylefloat: left;
idiets
()
Table Row (tr)
iddes
Table Cell (td)
Use this when your add/remove/edit operation won't refresh.
Table Row (tr)
idret
Table Cell (td)
Returns
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
// Note: method validate only works in the smart client.

// Use this when your add/remove/edit operation won't refresh.
Table Row (tr)
classlastDetailRow
Table Cell (td)