Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

ModuleInstanceSelect

Selects only module instances owned by the requested plugin and compatible module types.

Import

import { ModuleInstanceSelect } from "@dartwic/interface-sdk/ui";

Declaration

export const ModuleInstanceSelect: HostComponent<ModuleInstanceSelectProps>;

ModuleInstanceSelectProps

Props for selecting a live module instance compatible with a plugin task.

export interface ModuleInstanceSelectProps extends HostComponentProps {
    /** Engine plugin that must own every displayed module instance. */
    pluginId: string;
    /** Optional compatible module type IDs, in local or plugin-qualified form. */
    moduleTypeIds?: string[];
    /** Selected module-instance name. */
    value?: string;
    /** Called with the selected module-instance name. */
    onValueChange?: (value: string) => void;
    /** Empty-selection prompt. */
    placeholder?: string;
    /** Disables the selector. */
    disabled?: boolean;
    /** Shows loading, incompatibility, and empty-state diagnostics. */
    showStatus?: boolean;
}
PropTypeRequirementDescription
pluginIdstringRequiredEngine plugin that must own every displayed module instance.
moduleTypeIdsstring[]OptionalOptional compatible module type IDs, in local or plugin-qualified form.
valuestringOptionalSelected module-instance name.
onValueChange(value: string) => voidOptionalCalled with the selected module-instance name.
placeholderstringOptionalEmpty-selection prompt.
disabledbooleanOptionalDisables the selector.
showStatusbooleanOptionalShows loading, incompatibility, and empty-state diagnostics.