Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Contents:

Table of Contents

...


In the select mode, viewer can display additional custom menu items.

...

Code Block
languagejs
var menuItem = {
 name: 'My Menu',
 callback: this.myFunction,
 context: this,
 iconCls: 'icon-molecule', 
 domainId: '525'
};

var menuItems = [];
menuItems.push(menuItem);
HD.EmbededApi.registerContextMenu(menuItems)

  • name - display name for this menu item

  • callbackFn - a functin that will be called when the menu item is clicked

  • context - context that should be set on callback function

  • iconCls - optional icon class that should be used with the menu item

  • domainId - optional domain ID, if provided, ID's from given domain will be added to function call arguments.

...

x-fa namesapce is no longer available. Please use one of these namespaces:

Other namespaces are not available. The syntax is fully standard as for Font Awesome 5. Sample use:

...

Since version 3.4 vector icons from Font Awesome PRO are available for use. Only "Regular" icon set can be used. 

Sample

Image Removed

...