Image cache node
This commit is contained in:
@@ -30,7 +30,11 @@
|
||||
|
||||
<div class="wrapper gradio-button">
|
||||
{#if node !== null}
|
||||
<Button on:click={onClick} variant="primary" {style}>
|
||||
<Button
|
||||
disabled={widget.attrs.disabled}
|
||||
on:click={onClick}
|
||||
variant="primary"
|
||||
{style}>
|
||||
{widget.attrs.title}
|
||||
</Button>
|
||||
{/if}
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
<Select
|
||||
bind:value={option}
|
||||
items={node.properties.values}
|
||||
disabled={node.properties.values.length === 0}
|
||||
disabled={widget.attrs.disabled || node.properties.values.length === 0}
|
||||
clearable={false}
|
||||
showChevron={true}
|
||||
on:change
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
{#if node !== null && option !== null}
|
||||
<Range
|
||||
bind:value={option}
|
||||
disabled={widget.attrs.disabled}
|
||||
minimum={node.properties.min}
|
||||
maximum={node.properties.max}
|
||||
step={node.properties.step}
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
<TextBox
|
||||
bind:value={$nodeValue}
|
||||
label={widget.attrs.title}
|
||||
disabled={widget.attrs.disabled}
|
||||
lines={node.properties.multiline ? 5 : 1}
|
||||
max_lines={node.properties.multiline ? 5 : 1}
|
||||
show_label={true}
|
||||
|
||||
Reference in New Issue
Block a user