UNPKG

nbr-web-app

Version:
56 lines (54 loc) 1.96 kB
<script type="text/javascript"> RED.nodes.registerType('nbr-web-window-action',{ category: 'Web Applications', color: '#a6bbcf', defaults: { name: {value:""}, action: {value:7, required:true}, waitbefore: {value:"500"}, waitafter: {value:"500"} }, inputs:1, outputs:1, icon: "font-awesome/fa-window-restore", label: function() { if (this.name == "") return "Window Action"; return this.name; } }); </script> <script type="text/html" data-template-name="nbr-web-window-action"> <div class="form-row"> <label for="node-input-action"><i class="icon-tag"></i> Action</label> <select class="form-control" id="node-input-action"> <option value="1">Navigate Back</option> <option value="2">Navigate Forward</option> <option value="3">Refresh</option> <option value="4">Maximize</option> <option value="5">Minimize</option> <option value="6">Full Screen</option> <option value="7">Close</option> </select> </div> <div class="form-row"> <label for="node-input-waitbefore"><i class="icon-tag"></i> Wait before node</label> <input type="text" id="node-input-waitbefore" placeholder=""> </div> <div class="form-row"> <label for="node-input-waitafter"><i class="icon-tag"></i> Wait after node</label> <input type="text" id="node-input-waitafter" placeholder=""> </div> <div class="form-row"> <label for="node-input-name"><i class="fa fa-tag"></i> Name</label> <input type="text" id="node-input-name" placeholder="Enter node name"> </div> </script> <script type="text/html" data-help-name="nbr-web-window-action"> <p>Window actions</p> <h1>Properties</h1> <ul> <li><b>Action : </b>Window action</li> <li><b>Wait before node : </b>Delay before execution</li> <li><b>Wait after node : </b>Delay after execution</li> </ul> </script>