mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 00:40:01 +02:00
updated use of method components
This commit is contained in:
parent
2337aa9d6d
commit
acd0c80316
@ -38,11 +38,11 @@ export const DeviceConnectionComponent = React.memo(
|
|||||||
<MethodComponent
|
<MethodComponent
|
||||||
name="connect"
|
name="connect"
|
||||||
parentPath={fullAccessPath}
|
parentPath={fullAccessPath}
|
||||||
parameters={connect.parameters}
|
|
||||||
docString={connect.doc}
|
docString={connect.doc}
|
||||||
addNotification={addNotification}
|
addNotification={addNotification}
|
||||||
displayName={'reconnect'}
|
displayName={'reconnect'}
|
||||||
id={id + '-connect'}
|
id={id + '-connect'}
|
||||||
|
render={true}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
@ -37,8 +37,8 @@ export type SerializedValue = {
|
|||||||
value?: ValueType | ValueType[];
|
value?: ValueType | ValueType[];
|
||||||
readonly: boolean;
|
readonly: boolean;
|
||||||
doc?: string | null;
|
doc?: string | null;
|
||||||
parameters?: Record<string, SerializedValue>;
|
|
||||||
async?: boolean;
|
async?: boolean;
|
||||||
|
frontend_render?: boolean;
|
||||||
enum?: Record<string, string>;
|
enum?: Record<string, string>;
|
||||||
};
|
};
|
||||||
type GenericComponentProps = {
|
type GenericComponentProps = {
|
||||||
@ -147,6 +147,7 @@ export const GenericComponent = React.memo(
|
|||||||
parentPath={parentPath}
|
parentPath={parentPath}
|
||||||
docString={attribute.doc}
|
docString={attribute.doc}
|
||||||
value={String(attribute.value)}
|
value={String(attribute.value)}
|
||||||
|
readOnly={attribute.readonly}
|
||||||
enumDict={attribute.enum}
|
enumDict={attribute.enum}
|
||||||
addNotification={addNotification}
|
addNotification={addNotification}
|
||||||
changeCallback={changeCallback}
|
changeCallback={changeCallback}
|
||||||
@ -161,10 +162,10 @@ export const GenericComponent = React.memo(
|
|||||||
name={name}
|
name={name}
|
||||||
parentPath={parentPath}
|
parentPath={parentPath}
|
||||||
docString={attribute.doc}
|
docString={attribute.doc}
|
||||||
parameters={attribute.parameters}
|
|
||||||
addNotification={addNotification}
|
addNotification={addNotification}
|
||||||
displayName={displayName}
|
displayName={displayName}
|
||||||
id={id}
|
id={id}
|
||||||
|
render={attribute.frontend_render}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
@ -173,11 +174,11 @@ export const GenericComponent = React.memo(
|
|||||||
name={name}
|
name={name}
|
||||||
parentPath={parentPath}
|
parentPath={parentPath}
|
||||||
docString={attribute.doc}
|
docString={attribute.doc}
|
||||||
parameters={attribute.parameters}
|
|
||||||
value={attribute.value as Record<string, string>}
|
value={attribute.value as Record<string, string>}
|
||||||
addNotification={addNotification}
|
addNotification={addNotification}
|
||||||
displayName={displayName}
|
displayName={displayName}
|
||||||
id={id}
|
id={id}
|
||||||
|
render={attribute.frontend_render}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user