Virtual list in dropdowns

This commit is contained in:
space-nuko
2023-05-10 09:54:04 -05:00
parent 127768f04d
commit ce9ee44f45
7 changed files with 214 additions and 45 deletions

View File

@@ -219,6 +219,11 @@ export type AttributesSpec = {
*/
max?: number,
/*
* If `type` is "string", display as a textarea.
*/
multiline?: boolean,
/*
* Valid `LGraphNode.type`s this property applies to if it's located in a node.
* These are like "ui/button", "ui/slider".
@@ -386,6 +391,17 @@ const ALL_ATTRIBUTES: AttributesSpecList = [
defaultValue: "large"
},
// Combo
{
name: "convertValueToLabelCode",
type: "string",
location: "nodeProps",
editable: true,
multiline: true,
validNodeTypes: ["ui/combo"],
defaultValue: ""
},
// Gallery
{
name: "variant",