From 28d7fad59ffd058b3d013ad99a72cba257bf991e Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Sun, 7 Apr 2024 14:51:40 +0200 Subject: [PATCH] add js doc --- .../packages/core/entity/entity.context.ts | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/entity/entity.context.ts b/src/Umbraco.Web.UI.Client/src/packages/core/entity/entity.context.ts index acb9abfc8b..8f193465ae 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/entity/entity.context.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/entity/entity.context.ts @@ -4,7 +4,7 @@ import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api'; import { UmbStringState } from '@umbraco-cms/backoffice/observable-api'; /** - * UmbEntityContext + * Provides the entity context * @export * @class UmbEntityContext * @extends {UmbContextBase} @@ -25,18 +25,38 @@ export class UmbEntityContext extends UmbContextBase { super(host, UMB_ENTITY_CONTEXT); } + /** + * Set the entity type + * @param {string | undefined} entityType + * @memberof UmbEntityContext + */ setEntityType(entityType: string | undefined) { this.#entityType.setValue(entityType); } - getEntityType() { + /** + * Get the entity type + * @returns {string | undefined} + * @memberof UmbEntityContext + */ + getEntityType(): string | undefined { return this.#entityType.getValue(); } + /** + * Set the unique + * @param {string | null | undefined} unique + * @memberof UmbEntityContext + */ setUnique(unique: string | null | undefined) { this.#unique.setValue(unique); } + /** + * Get the unique + * @returns {string | null | undefined} + * @memberof UmbEntityContext + */ getUnique() { return this.#unique.getValue(); }