n8n-nodes-scrollable-note 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/nodes/Scrollable.node.js +52 -0
- package/package.json +8 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
displayName: 'Scrollable Note',
|
|
3
|
+
name: 'scrollableNote',
|
|
4
|
+
group: ['input'],
|
|
5
|
+
version: 1,
|
|
6
|
+
description: 'A scrollable note for workflow documentation',
|
|
7
|
+
defaults: {
|
|
8
|
+
name: 'Scrollable Note',
|
|
9
|
+
color: '#FFD966', // Light yellow
|
|
10
|
+
},
|
|
11
|
+
inputs: [],
|
|
12
|
+
outputs: [],
|
|
13
|
+
properties: [
|
|
14
|
+
{
|
|
15
|
+
displayName: 'Note Content',
|
|
16
|
+
name: 'noteContent',
|
|
17
|
+
type: 'string',
|
|
18
|
+
typeOptions: {
|
|
19
|
+
rows: 20, // Large text area for editing
|
|
20
|
+
},
|
|
21
|
+
default: '',
|
|
22
|
+
placeholder: 'Type your note here...',
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
async execute() {
|
|
26
|
+
const note = this.getNodeParameter('noteContent', 0);
|
|
27
|
+
|
|
28
|
+
// Scrollable HTML container
|
|
29
|
+
const htmlView = `
|
|
30
|
+
<div style="
|
|
31
|
+
max-height: 250px;
|
|
32
|
+
overflow-y: auto;
|
|
33
|
+
padding: 10px;
|
|
34
|
+
background: #fff8dc;
|
|
35
|
+
border: 1px solid #ccc;
|
|
36
|
+
font-family: Arial, sans-serif;
|
|
37
|
+
white-space: pre-wrap;
|
|
38
|
+
">
|
|
39
|
+
${note}
|
|
40
|
+
</div>
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
return [
|
|
44
|
+
[
|
|
45
|
+
{
|
|
46
|
+
json: { note },
|
|
47
|
+
html: htmlView,
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
];
|
|
51
|
+
},
|
|
52
|
+
};
|