N4 Rounded Edge Pane


  • Shows a Rounded Pane around PX Graphics
  • Change Style
  • Adjust Size
  • Allows Transparency
  • Works in Workbench and Modern Browser
Add to Cart
roundedEdgePane

Overview


The Rounded Edge Pane widget places a rounded border on a px graphic. 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?

Usage


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 roundedEdgePane-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.

Tridium px page


Properties


bms totals chart properties

The widget has a number of configurable properties that can be used to modify look, feel, and functionality. Change the properties as required:

Height, Width:

Size of the transparent box on screen. Can be in pixels or percentage. E.g. 50px or 95%.

Background Color:

Can be transparent or a color choosen from the color palette.

Border Color:

Color of the border.

Corner Radius:

How rounded the edges are. Higher the value, the more round it will be.

Using in your HTML Page


You can now use the widget in your custom html page as long as the html file is in a appropriate station directory. E.g.:
C:/../station/shared/demo1.html

1. Create an html page and place in your station files directory.
2. Create a div element and give it an id so you can inject the widget into this area. E.g.: widget1.
3. Add the following scripts before the closing head tag or the closing body tag. E.g.:

    
        <script type="text/javascript">

            var require = {
                paths: {
                    //pointing nmodule at /module is a Niagara convention, allowing us to
                    //refer to module resources without having RequireJS get hung up on
                    //the use of absolute paths everywhere.
                    "nmodule": "/module",
                    "baja": "/module/bajaScript/rc/plugin/baja",
                    "bajaScript": "/module/bajaScript/rc",
                    "bajaux": "/module/bajaux/rc",
                    "lex": "/module/js/rc/lex/lexplugin",
                    "css": "/module/js/com/tridium/js/ext/require/css",
        
                    "jquery": "/module/js/rc/jquery/jquery-3.4.1.min",
                    "Handlebars": "/module/js/rc/handlebars/handlebars.min",
                    "Promise": "/module/js/rc/bluebird/bluebird",
        
                    // these are runtime dependencies
                    "hbs": "/module/js/rc/require-handlebars-plugin/hbs",
                    "i18nprecompile": "/module/js/rc/require-handlebars-plugin/hbs/i18nprecompile",
                    "json2": "/module/js/rc/require-handlebars-plugin/hbs/json2",
                    "underscore": "/module/js/rc/underscore/underscore",
                    "dialogs": "/module/js/rc/dialogs/dialogs",
                    "theme": "/module/themeZebra/ux/theme",
                    "pikaday": "/module/js/rc/pikaday/pikaday",
                    'log': '/module/js/rc/log/logPlugin',
                },
        
                hbs: {
                    disableI18n: true
                },
            }
        </script>
        <script type="text/javascript" src="/module/js/com/tridium/js/ext/require/require.min.js"></script>
        <script>
        require(['/module/roundedEdgePane/rc/roundedEdgePaneWidget.run.js'], function (app) {
    
            app.initialiseValue({
                divId: '#widget1',
                borderWidth: 2,
                cornerRadius: 10,
                height: '50px',
                width: '50px',
                backgroundColor: 'transparent',
                borderColor: 'grey',
            });
        });
        </script>
        </head>
        <!--html to go here-->
        <div id="widget1" style="width:300px;height:300px;"></div>
        <!--Rest of your html below...-->
                                    


You May Also Like





N4 - 3D Maps with Values

N4 View Builder™©

tridium bms system

PX Tooltip

tridium charting

back to more widgets...