Web Actions

A Web Action is a component of the menu that, when clicked, displays a screen within the NEO Dashboard's interface. Web Actions can either point to a URL or can reference a JavaScript Panel class or Flux/React component, as shown in the following example:

<ModuleUiMetaModel>
<WebInfo>
<WebAction name="ViewMyPanel">
<PanelOptions>
<PanelClass>MOD.MyPanel</PanelClass>
<PanelConfig>{param:'value'}</PanelConfig> <!-- options config options -->
</PanelOptions>
</WebAction>
 
<WebAction name="ViewMyFluxRoot">
<OneFluxComponent>
<RootComponent>MOD/MyFluxRoot</RootComponent>
<ComponentProperties>{"param":"value"}</ComponentProperties><!-- properties of the component -->
</OneFluxComponent>
</WebAction>
<WebAction name="ViewMyURL" target="_blank">
<URL>/oms/public/page.html</URL>
</WebAction>
 
<WebAction name="ReactUIExamples">
<OneReactPage>
<ModulePath>PLT/ReactUIExamples</ModulePath>
</OneReactPage>
<NeoShortcutWidgetImage>/oms/img/ReactUIExamples.png</NeoShortcutWidgetImage>
</WebAction>
</WebInfo>
</ModuleUiMetaModel>

WebActions also have the following optional attributes

  • iconCls: A CSS class that defines the icon to use next to the menu item.

  • singleton: True to make the action into a Singleton Tab as explained below

  • target: If your WebAction uses the URL tag, you can use this attribute to show the URL in a specific window, similar to the "target" tag in <a href="http://mydomain.com" target="_blank">. WebActions that use PanelOptions always launch as tabs, regardless of the value in the "target" attribute.