UNPKG

node-red-contrib-uibuilder

Version:

Easily create data-driven web UI's for Node-RED. Single- & Multi-page. Multiple UI's. Work with existing web development workflows or mix and match with no-code/low-code features.

80 lines (67 loc) 4.12 kB
<!-- Copyright (c) 2023-2024 Julian Knight (Totally Information) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <script src="./resources/node-red-contrib-uibuilder/uib-save.js"></script> <script type="text/html" data-template-name="uib-save"> <div id="ti-edit-panel"> <div aria-label="uibuilder URL to associate with" class="form-row" title="uibuilder URL to associate with"> <label for="node-input-url"><i class="fa fa-globe"></i> URL</label> <select id="node-input-url" style="width:70%"> <option value="" name="">--choose a uibuilder instance--</option> </select> </div> <hr> <div aria-label="If set, `msg._uib.pageName` or `msg._ui.pageName` will be used instead of the file name. Folder will be set to the current served folder for the node." class="form-row"> <label for="node-input-usePageName"> Use pageName </label> <input type="checkbox" id="node-input-usePageName" style="display: inline-block; width: auto; vertical-align: top;"> </div> <div aria-label="Folder to save to (relative to node instance root folder). Leave blank to use `msg.folder`. `..` not allowed." class="form-row" id="folder"> <label for="node-input-folder"><i class="fa fa-folder-open-o"></i> Folder</label> <input type="text" id="node-input-folder" placeholder="If blank, uses msg.folder"> </div> <div aria-label="File name. Leave blank to use `msg.fname`. May have prefixed sub-folders. `..` not allowed." class="form-row" id="fname"> <label for="node-input-fname"><i class="fa fa-file-code-o"></i> File</label> <input type="text" id="node-input-fname" placeholder="If blank, uses msg.fname|filename|fileName"> </div> <div aria-label="If set and sub-folder name(s) do not not exist, they will be created." class="form-row"> <label for="node-input-createFolder"> Create Folder? </label> <input type="checkbox" id="node-input-createFolder" style="display: inline-block; width: auto; vertical-align: top;"> </div> <div aria-label="If set, connected client browser tabs will be automatically reloaded." class="form-row"> <label for="node-input-reload"> Reload Clients? </label> <input type="checkbox" id="node-input-reload" style="display: inline-block; width: auto; vertical-align: top;"> </div> <div aria-label="Character coding for text inputs" class="form-row"> <label for="node-input-encoding"><i class="fa fa-file-text-o"></i> Encoding</label> <input type="text" id="node-input-encoding" value="utf8" disabled> </div> <div aria-label="New file access mode" class="form-row"> <label for="node-input-mode"><i class="fa fa-share-square-o"></i> File Mode</label> <input type="text" id="node-input-mode" value="0o666" disabled> </div> <hr> <div aria-label="Default msg topic. Make unique if using uib-cache." class="form-row"> <label for="node-input-topic"><i class="fa fa-tasks"></i> Topic</label> <input type="text" id="node-input-topic"> </div> <div aria-label="Node name (descriptive only)" class="form-row"> <label for="node-input-name"><i class="fa fa-tag"></i> Name</label> <input type="text" id="node-input-name"> </div> </div> </script>