Works Software | Niagara 4 - Side Bar Menu

Works Software | Niagara 4 - Side Bar Menu

The Side Bar Menu is sophisticated, alluring side menu created with the slide effect on the sub menu items. When you hover over the side menu icons, menu items appears on the side in a block. It uses Boxicons and you can set the icon in the config file. Icon names can be found Here (Icons) . The menu uses json style config file so you can tailor it to your requirements. Fonts, logos, text, colours can all be modified. The position of the menu will always be in the top right corner of the px page and stretch to 100% width. The menu will retain which sub menu item you have opened and navigated to. The profile image and title is dynamic and comes from the user in the user service. See below for setup. Before you start, copy the .jar file to your modules directory. Restart the station and Workbench.

Are you looking for a cost effective way to manage and visualize data for all your customers? Why not have a look at View Builder ?

Before you start. Download the modules from our portal (see your order confirmation, which also explains licensing). Copy the modules file to your modules directory. Restart BOTH station and Workbench.

1. Copy the sideBarMenu-ux.jar file to your modules directory. 2. Open the module from your palette file. 3. Drag and drop the widget from the palette onto your px view.

The menu has a few properties. You can copy and paste JSON string into the config property. OR you can reference a file which contains your menu config.

The config is in JSON format. You can customise as needed. Below is the default config with examples. However you can override values as needed.

1. To help build your menu configuration use an online JSON editor like: https://jsoneditoronline.org/ Copy and paste the above JSON and modify.

2. After you have made changes to the JSON, set the config property value of the menu: IMPORTANT. You should remove all carriage returns and line breaks from the generated configuration before pasting. You can do this by using a text editor like Notepad++. In Notepad++ do CTRL+H (make sure extended Search mode is selected) to find and replace \r and \n with blank. This will remove all carriage returns and line breaks.

3. For the hyperlinks, valid ords must be used. e.g. station:|slot:/Drivers/NiagaraNetwork/AHU1 or when linking from px page to another px page with the menu /ord/station:%7Cslot:/Drivers/Page2/ Side$20Bar$202%7Cview:SideBarMenu1

4. Please contact us if you're having trouble setting up the menu configuration.

File Config You can point the menu to a file that exists on the station. Valid values are ords e.g.: file:^dropdownMenu/config.txt If you do not specify a file reference the config property will be used instead. If you're having issues loading the menu, copy and paste the json as a string as noted in step 1.

Collapse Icon File Replace the collapse menu icon with your own icon image. e.g. file:^my-logo.png Its recommended you use the css override to set the placement of the icon Example:

* Workbench Viewing Workaround Niagara Px View doesn't allow the menu items to appear over other items, however, there is a workaround: If you're running 4.3 or above, there should be a "toggle preview" button at the end of the toolbar when looking at a Px graphic. This will show you your Px page rendered in a browser.

Image, Full Name, and Title:

On the user create 2 slots. profileImage. Type is ord and should point to a file in the station shared files. e.g. file:^avatar-1.png title. baja:String. Set the title to show on the menu. Enter the full name on the user property sheet.

In order to have a link open a new tab, or window, then set the link property in the json config:

back to more widgets...

Build Your Own dashboards and win Projects by showing data that increase value and reduces expenditure.

Home About Us Current Projects Affiliations Privacy Policy ECommerce Policy

View Builder IOT ™© Mobile Solutions N4 View Builder ™© Niagara PX Graphics

Software Development Consultancy Project Management Graphic Design Knowledge

T: +44 (0)800 511 8446 (UK) +1 888 207 4061 (US)

Copyright © 2023 Works Software & Engineering Ltd. All rights reserved.

Recommended articles