ObjectRelationshipComponent
Component Metadata
Section titled “Component Metadata”Selector: yuv-object-relationship
Standalone: No
Inputs
Section titled “Inputs”config
Section titled “config”Type: RelationshipComponentConfig
Required: Yes
Configuration for the relations component.
Type: "list" | "graph"
Default Value: 'graph'
Display mode for the relationship view.
objectId
Section titled “objectId”Type: string
Required: Yes
ID of the object to display relations for.
relationActions
Section titled “relationActions”Type: TemplateRef<any> | null
Default Value: null
Outputs
Section titled “Outputs”Type: "list" | "graph"
Display mode for the relationship view.
Properties
Section titled “Properties”Type: unknown
Default Value: this.#objectRelationshipService.busy
Type: unknown
Default Value: computed(() => \{ const rel = this.#relations(); return rel && rel.relations.totalNumItems === 0; \})
originObject
Section titled “originObject”Type: unknown
Default Value: signal<DmsObject | null>(null)
supportedRelationships
Section titled “supportedRelationships”Type: unknown
Default Value: computed<Relationship[]>(() => \{ const obj = this.originObject(); return obj ? this.#system.getSupportedRelationships(obj) : []; \})
Methods
Section titled “Methods”addRelationship
Section titled “addRelationship”addRelationship(): voidtoggleMode
Section titled “toggleMode”toggleMode(): void