Niagara Multi State Switch
- New Version
- Multiple Variations
- Drag n' Drop
- Binds To Enum/Boolean Writable
- Renders in all major browsers
- Configurable
The Multi State Switch binds to an EnumWritable or BooleanWritable and can control their point value. For example, On/Off/Hand/Auto. Switch between states easily for quick control. 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 multiStateSwitch-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 widget has a number of configurable properties that can be used to modify look, feel, and functionality. Change the properties as required.
Main Ord Binding:
Set this to an absolute ord, e.g.
station:|slot:/Drivers/NiagaraNetwork/
EnumWritable or relativized ORD e.g.
slot:EnumWritable
The ord should point to a enum/bool writable. The 2nd ord is if you want to seperate the status and control ord. One shows status, while the other does the control.
Pulse Animation Index when using variation 3 is which index to pulse the center orb (e.g. fault index of 3 will pulse)
Css Override:
Variation 3 - change orb color (change the index value from 0-4 accordingly):
// Change 0 index to another value if needed
.radial-wheel input[value="0"]:checked~.central-orb {
background: radial-gradient(circle at 35% 35%, #fbbf24, #d97706);
}
Variation 4 - change highlight color (change the index value from 0-4 accordingly):
.matrix-grid input[value="0"]:checked+.grid-tile {
background: rgba(245, 158, 11, 0.04);
border-color: #f59e0b;
}
.matrix-grid input[value="0"]:checked+.grid-tile .tile-name {
color: #f59e0b;
}
.matrix-grid input[value="0"]:checked+.grid-tile::before {
border-top-color: #f59e0b;
border-left-color: #f59e0b;
}
Variation 5 - change selected value color (change the index value from 0-4 accordingly):
// Change 0 index to another value if needed
.segmented[data-index="0"] {--selected: red;}