-
Notifications
You must be signed in to change notification settings - Fork 1
/
flat.html
32 lines (30 loc) · 1012 Bytes
/
flat.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
<script type="text/javascript">
RED.nodes.registerType('flat',{
category: 'function',
color: '#a6bbcf',
defaults: {
name: {value:""},
safe: {value:false}
},
icon: "file.png",
inputs:1,
outputs:1,
label: function() {
return this.name||"flat";
}
});
</script>
<script type="text/x-red" data-template-name="flat">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-safe"><i class="icon-smaller"></i> Flatten Arrays</label>
<input type="checkbox" id="node-input-safe">
</div>
</script>
<script type="text/x-red" data-help-name="flat">
<p>Use this node to flatten javascript objects.</p>
<p>If flatten arrays is checked then arrays will be flattened into numerical equivelants.</p>
</script>