
###########################
HoopsIFCRelationshipElement
###########################

.. js:class:: wvc.HoopsIFCRelationshipElement

   Provides a component for displaying IFC relationships in BIM models.
   
   This component shows hierarchical relationships between IFC elements, allowing users to explore how building components relate to each other. It displays relationship types, element names, and provides navigation to related elements through selection.
   
   The component automatically updates when selection changes and provides expandable/collapsible relationship groups with smooth animations (unless disabled).
   
   
   Index
   =====
   
   .. rubric:: Constructors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~wvc.HoopsIFCRelationshipElement.constructor`
   
   .. rubric:: Properties
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:data:`~wvc.HoopsIFCRelationshipElement.expandedRelationships`
   * :js:data:`~wvc.HoopsIFCRelationshipElement.noAnim`
   * :js:data:`~wvc.HoopsIFCRelationshipElement.selectionRelationships`
   * :js:data:`~wvc.HoopsIFCRelationshipElement.service`
   
   .. rubric:: Methods
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:meth:`~wvc.HoopsIFCRelationshipElement.disconnectedCallback`
   * :js:meth:`~wvc.HoopsIFCRelationshipElement.firstUpdated`
   * :js:meth:`~wvc.HoopsIFCRelationshipElement.isRelationshipExpanded`
   * :js:meth:`~wvc.HoopsIFCRelationshipElement.toggleRelationship`
   
   



.. rst-class:: kind-group kind-constructors

.. rubric:: Constructors
   :class: kind-group-title


.. js:method:: wvc.HoopsIFCRelationshipElement.constructor

      .. rst-class:: sig-pretty-signature
      
         | HoopsIFCRelationshipElement(): :js:class:`HoopsIFCRelationshipElement <wvc.HoopsIFCRelationshipElement>`
      
      **Returns**\ : :js:class:`HoopsIFCRelationshipElement <wvc.HoopsIFCRelationshipElement>`
      



.. rst-class:: kind-group kind-properties

.. rubric:: Properties
   :class: kind-group-title


.. js:data:: wvc.HoopsIFCRelationshipElement.expandedRelationships

      .. rst-class:: sig-pretty-signature
      
         | expandedRelationships: *Record*
      



.. js:data:: wvc.HoopsIFCRelationshipElement.noAnim

      .. rst-class:: sig-pretty-signature
      
         | noAnim: *boolean*
      
      When true, animations will be disabled for this component
      



.. js:data:: wvc.HoopsIFCRelationshipElement.selectionRelationships

      .. rst-class:: sig-pretty-signature
      
         | selectionRelationships: (*undefined* | :js:class:`RelationshipData <wvc.RelationshipData>`\ [])
      



.. js:data:: wvc.HoopsIFCRelationshipElement.service

      .. rst-class:: sig-pretty-signature
      
         | service: :js:class:`IIFCRelationshipsService <wvc.IIFCRelationshipsService>`
      



.. rst-class:: kind-group kind-methods

.. rubric:: Methods
   :class: kind-group-title


.. js:method:: wvc.HoopsIFCRelationshipElement.disconnectedCallback

      .. rst-class:: sig-pretty-signature
      
         | disconnectedCallback(): *void*
      
      Lifecycle callback when component is removed from the DOM.
      
      Cleans up event listeners for IFC relationships service to prevent memory leaks.
      
      **Returns**\ : *void*
      
      
      



.. js:method:: wvc.HoopsIFCRelationshipElement.firstUpdated

      .. rst-class:: sig-pretty-signature
      
         | firstUpdated(): *void*
      
      Lifecycle callback when component is first updated.
      
      Initializes the IFC relationships service and sets up event listeners for relationship changes based on selection.
      
      **Returns**\ : *void*
      
      
      



.. js:method:: wvc.HoopsIFCRelationshipElement.isRelationshipExpanded

      .. rst-class:: sig-pretty-signature
      
         | isRelationshipExpanded(**relationshipType**\ : *string*\ ): *boolean*
      
      Checks whether a relationship group is currently expanded.
      
      **Parameters**
      
      
         **relationshipType**\ : *string*
      
      
            The type name of the relationship to check
      
      
      
      **Returns**\ : *boolean*
      
      
         True if the relationship group is expanded, false otherwise
      
      



.. js:method:: wvc.HoopsIFCRelationshipElement.toggleRelationship

      .. rst-class:: sig-pretty-signature
      
         | toggleRelationship(**relationshipType**\ : *string*\ ): *void*
      
      Toggles the expanded/collapsed state of a relationship group.
      
      Controls the visibility of relationship elements within a specific relationship type, with smooth animations (unless disabled via no-anim attribute).
      
      **Parameters**
      
      
         **relationshipType**\ : *string*
      
      
            The type name of the relationship to toggle
      
      
      
      **Returns**\ : *void*
      
      
      




