Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
285ea7b7
Commit
285ea7b7
authored
Aug 07, 2023
by
comfyanonymous
Browse files
Add "display" to custom node example.
parent
1f0f4cc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
custom_nodes/example_node.py.example
custom_nodes/example_node.py.example
+3
-2
No files found.
custom_nodes/example_node.py.example
View file @
285ea7b7
...
@@ -51,9 +51,10 @@ class Example:
...
@@ -51,9 +51,10 @@ class Example:
"default": 0,
"default": 0,
"min": 0, #Minimum value
"min": 0, #Minimum value
"max": 4096, #Maximum value
"max": 4096, #Maximum value
"step": 64 #Slider's step
"step": 64, #Slider's step
"display": "number" # Cosmetic only: display as "number" or "slider"
}),
}),
"float_field": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01}),
"float_field": ("FLOAT", {"default": 1.0, "min": 0.0, "max": 10.0, "step": 0.01
, "display": "number"
}),
"print_to_screen": (["enable", "disable"],),
"print_to_screen": (["enable", "disable"],),
"string_field": ("STRING", {
"string_field": ("STRING", {
"multiline": False, #True if you want the field to look like the one on the ClipTextEncode node
"multiline": False, #True if you want the field to look like the one on the ClipTextEncode node
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment