Browse Source

feat: allow Node arguments to be passed to Custom Node (#437)

pull/566/merge
Attila Nagy 2 years ago
committed by GitHub
parent
commit
0ca9385a62
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      diagrams/custom/__init__.py

+ 2
- 2
diagrams/custom/__init__.py View File

@@ -15,6 +15,6 @@ class Custom(Node):
def _load_icon(self):
return self._icon

def __init__(self, label, icon_path):
def __init__(self, label, icon_path, *args, **kwargs):
self._icon = icon_path
super().__init__(label)
super().__init__(label, *args, **kwargs)

Loading…
Cancel
Save