-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathui-load.html
47 lines (41 loc) · 1.39 KB
/
ui-load.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<script type="text/x-red" data-template-name="hidden-ui-load">
<div class="form-row">
<label for="node-input-group"><i class="fa fa-table"></i> Group</label>
<input type="text" id="node-input-group">
</div>
<div class="form-row">
<label><i class="fa fa-object-group"></i> Size</label>
<input type="hidden" id="node-input-width">
<input type="hidden" id="node-input-height">
<button class="editor-button" id="node-input-size"></button>
</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">
</div>
</script>
<script type="text/javascript">
RED.nodes.registerType('hidden-ui-load', {
category: 'ui',
color: 'rgb( 63, 173, 181)',
defaults: {
group: { type: 'ui_group', required: true },
order: { value: 0 },
name: { value: "" }
},
inputs: 0,
outputs: 1,
icon: "empty.png",
paletteLabel: 'load',
label: function () {
return this.name || "On Load";
},
oneditprepare: function () {
$("#node-input-size").elementSizer({
width: "#node-input-width",
height: "#node-input-height",
group: "#node-input-group"
});
}
});
</script>