hosanna-ui-docs - v0.9.0
    Preparing search index...

    BaseCell

    Base class for collection view cells that provides core cell functionality including content management, recycling, and rendering capabilities.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _cacheKey: string = ''

    The cache key for the cell. Initialized to an empty string by default.

    _hid: string = ''

    Internal hierarchical identifier for the cell

    index: number = -1

    The index of the cell in the list. Initialized to -1 by default.

    The item property represents an identifiable entity that will be used within the BaseCell component. It is expected to implement the IIdentifiable interface.

    Reference to the row that contains this cell

    viewStatus: ViewStatus = ViewStatus.Normal

    Current status of the view

    Methods

    • Renders the cell at the specified coordinates.

      Parameters

      • x: number

        The x-coordinate where the cell should be rendered.

      • y: number

        The y-coordinate where the cell should be rendered.

      Returns void

      This method should be overridden in a subclass to provide the actual rendering logic.

    • Parameters

      • visible: boolean

        Boolean indicating whether the cell should be visible

      Returns void

      setVisible

      Controls the visibility of the cell