Interface UmbContentWorkspaceContext<ContentModel, ContentTypeModel, VariantModelType>

The data supplier for a Element Property Dataset

interface UmbContentWorkspaceContext<
    ContentModel extends UmbContentDetailModel = UmbContentDetailModel,
    ContentTypeModel extends UmbContentTypeModel = UmbContentTypeModel,
    VariantModelType extends UmbEntityVariantModel = UmbEntityVariantModel,
> {
    IS_CONTENT_WORKSPACE_CONTEXT: true;
    isNew: Observable<undefined | boolean>;
    readOnlyState: UmbReadOnlyVariantStateManager;
    routes: UmbWorkspaceRouteManager;
    splitView: UmbWorkspaceSplitViewManager;
    structure: UmbContentTypeStructureManager<ContentTypeModel>;
    unique: Observable<undefined | UmbEntityUnique>;
    values: Observable<undefined | ContentModel["values"]>;
    variantOptions: Observable<UmbEntityVariantOptionModel<VariantModelType>[]>;
    variants: Observable<VariantModelType[]>;
    workspaceAlias: string;
    createPropertyDatasetContext(
        host: UmbControllerHost,
        variantId?: UmbVariantId,
    ): UmbPropertyDatasetContext;
    destroy(): void;
    finishPropertyValueChange(): void;
    getData(): undefined | ContentModel;
    getEntityType(): string;
    getIsNew(): undefined | boolean;
    getName(variantId?: UmbVariantId): undefined | string;
    getPropertyValue<ReturnValue = unknown>(
        alias: string,
        variantId?: UmbVariantId,
    ): undefined | ReturnValue;
    getUnique(): undefined | UmbEntityUnique;
    getValues(): undefined | ContentModel["values"];
    getVariant(variantId: UmbVariantId): undefined | VariantModelType;
    initiatePropertyValueChange(): void;
    isLoaded(): undefined | Promise<unknown>;
    name(variantId?: UmbVariantId): Observable<string>;
    propertyStructureById(
        id: string,
    ): Promise<Observable<undefined | UmbPropertyTypeModel>>;
    propertyValueByAlias<ReturnValue = unknown>(
        alias: string,
        variantId?: UmbVariantId,
    ): Promise<undefined | Observable<undefined | ReturnValue>>;
    requestSubmit(): Promise<void>;
    setName(name: string, variantId?: UmbVariantId): void;
    setPropertyValue(
        alias: string,
        value: unknown,
        variantId?: UmbVariantId,
    ): Promise<void>;
    variantById(
        variantId: UmbVariantId,
    ): Observable<undefined | VariantModelType>;
}

Type Parameters

Hierarchy (View Summary, Expand)

Implemented by

Properties

IS_CONTENT_WORKSPACE_CONTEXT: true
isNew: Observable<undefined | boolean>
unique: Observable<undefined | UmbEntityUnique>
values: Observable<undefined | ContentModel["values"]>
workspaceAlias: string

Methods

MMNEPVFCICPMFPCPTTAAATR