
#####################
HoopsSheetListElement
#####################

.. js:class:: wvc.HoopsSheetListElement

   Displays a flat list of drawing sheets from the model. Clicking a sheet node fires an event that consumers can use to activate the corresponding sheet.
   
   .. rubric:: Examples
   
   
   .. code-block:: html
   
      <hoops-sheet-list></hoops-sheet-list>
      
      <script>
        const el = document.getElementsByTagName('hoops-sheet-list')[0];
        el.model = modelInstance;
        el.addEventListener('hoops-sheet-list-node-click', (e) => console.log(e.detail));
      </script>
   
   .. rubric:: Custom Element
   
   
   ``hoops-sheet-list``
   
   .. rubric:: Events
   
   
   **hoops-sheet-list-node-click**
   
   
      Emitted when a sheet node is clicked
   
   
   .. rubric:: Since
   
   
   ``2026.3.0``
   
   
   Index
   =====
   
   .. rubric:: Constructors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~wvc.HoopsSheetListElement.constructor`
   
   .. rubric:: Accessors
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:func:`~wvc.HoopsSheetListElement.listElement`
   * :js:func:`~wvc.HoopsSheetListElement.model`
   * :js:func:`~wvc.HoopsSheetListElement.selected`
   * :js:func:`~wvc.HoopsSheetListElement.sheetAdapter`
   
   .. rubric:: Methods
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:meth:`~wvc.HoopsSheetListElement.selectNodes`
   
   



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

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


.. js:method:: wvc.HoopsSheetListElement.constructor

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



.. rst-class:: kind-group kind-accessors

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


.. js:method:: wvc.HoopsSheetListElement.listElement

      .. rst-class:: sig-pretty-signature
      
         | *get* listElement(): (*undefined* | *List*\ )
      
      Gets the internal list component element.
      
      **Returns**\ : (*undefined* \| *List*\ )
      
      
         The list element instance or undefined if not initialised
      
      



.. js:method:: wvc.HoopsSheetListElement.model

      .. rst-class:: sig-pretty-signature
      
         | *get* model(): (*undefined* | *IModel*\ )
      
      Convenience accessor for the model on the underlying adapter.
      
      **Returns**\ : (*undefined* \| *IModel*\ )
      
      
         The current model instance or undefined
      
      
      .. rst-class:: sig-pretty-signature
      
         | *set* model(**model**\ : (*undefined* | *IModel*\ )): *void*
      
      Sets the model instance for sheet data. Setting a new model refreshes the list.
      
      **Parameters**
      
      
         **model**\ : (*undefined* \| *IModel*\ )
      
      
            The model instance to set
      
      
      
      **Returns**\ : *void*
      
      
      
      .. rubric:: Throws
      
      
      When setting model before adapter initialisation
      



.. js:method:: wvc.HoopsSheetListElement.selected

      .. rst-class:: sig-pretty-signature
      
         | *get* selected(): *number*\ []
      
      Gets the currently selected sheet nodes.
      
      **Returns**\ : *number*\ []
      
      
         Array of selected node IDs
      
      
      .. rst-class:: sig-pretty-signature
      
         | *set* selected(**value**\ : *number*\ []): *void*
      
      Sets the currently selected sheet nodes.
      
      **Parameters**
      
      
         **value**\ : *number*\ []
      
      
            Array of node IDs to select
      
      
      
      **Returns**\ : *void*
      
      
      
      .. rubric:: Throws
      
      
      When setting selected nodes before list initialisation
      



.. js:method:: wvc.HoopsSheetListElement.sheetAdapter

      .. rst-class:: sig-pretty-signature
      
         | *get* sheetAdapter(): (*undefined* | *SheetAdapter*\ )
      
      Gets the sheet adapter managing list data.
      
      **Returns**\ : (*undefined* \| *SheetAdapter*\ )
      
      
         The current sheet adapter or undefined
      
      
      .. rst-class:: sig-pretty-signature
      
         | *set* sheetAdapter(**value**\ : *SheetAdapter*\ ): *void*
      
      Sets the sheet adapter managing list data. Populates ``elementsData`` from the adapter's model before assigning.
      
      **Parameters**
      
      
         **value**\ : *SheetAdapter*
      
      
            The sheet adapter to set
      
      
      
      **Returns**\ : *void*
      
      
      
      .. rubric:: Throws
      
      
      When setting adapter before list initialisation
      



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

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


.. js:method:: wvc.HoopsSheetListElement.selectNodes

      .. rst-class:: sig-pretty-signature
      
         | selectNodes(**nodeIds**\ : *number*\ [], **selected**\ : *boolean*\ ): *void*
      
      Selects or deselects sheet nodes.
      
      **Parameters**
      
      
         **nodeIds**\ : *number*\ []
      
      
            Array of node IDs to select or deselect
      
      
         **selected**\ : *boolean*
      
      
            Whether to select (true) or deselect (false) the nodes
      
      
      
      **Returns**\ : *void*
      
      
      
      .. rubric:: Throws
      
      
      When list element is not initialised
      




