aqt.browser.table
=================

.. py:module:: aqt.browser.table


Submodules
----------

.. toctree::
   :maxdepth: 1

   /autoapi/aqt/browser/table/model/index
   /autoapi/aqt/browser/table/state/index
   /autoapi/aqt/browser/table/table/index


Attributes
----------

.. autoapisummary::

   aqt.browser.table.Column
   aqt.browser.table.ItemId
   aqt.browser.table.ItemList


Classes
-------

.. autoapisummary::

   aqt.browser.table.SearchContext
   aqt.browser.table.Cell
   aqt.browser.table.CellRow


Functions
---------

.. autoapisummary::

   aqt.browser.table.backend_elide_mode_to_aqt_elide_mode
   aqt.browser.table.backend_color_to_aqt_color
   aqt.browser.table.adjusted_bg_color


Package Contents
----------------

.. py:data:: Column

.. py:data:: ItemId

.. py:data:: ItemList

.. py:class:: SearchContext

   .. py:attribute:: search
      :type:  str


   .. py:attribute:: browser
      :type:  aqt.browser.Browser


   .. py:attribute:: order
      :type:  bool | str | Column
      :value: True



   .. py:attribute:: reverse
      :type:  bool
      :value: False



   .. py:attribute:: addon_metadata
      :type:  dict | None
      :value: None



   .. py:attribute:: ids
      :type:  collections.abc.Sequence[ItemId] | None
      :value: None



.. py:class:: Cell(text: str, is_rtl: bool, elide_mode: anki.collection.BrowserRow.Cell.TextElideMode.V)

   .. py:attribute:: text
      :type:  str


   .. py:attribute:: is_rtl
      :type:  bool


   .. py:attribute:: elide_mode
      :type:  aqt.Qt.TextElideMode


.. py:class:: CellRow(cells: collections.abc.Generator[tuple[str, bool, anki.collection.BrowserRow.Cell.TextElideMode.V], None, None], color: anki.collection.BrowserRow.Color.V, font_name: str, font_size: int)

   .. py:attribute:: is_disabled
      :type:  bool
      :value: False



   .. py:attribute:: refreshed_at
      :type:  float


   .. py:attribute:: cells
      :type:  tuple[Cell, Ellipsis]


   .. py:attribute:: color
      :type:  dict[str, str] | None


   .. py:attribute:: font_name
      :type:  str


   .. py:attribute:: font_size
      :type:  int


   .. py:method:: is_stale(threshold: float) -> bool


   .. py:method:: generic(length: int, cell_text: str) -> CellRow
      :staticmethod:



   .. py:method:: placeholder(length: int) -> CellRow
      :staticmethod:



   .. py:method:: disabled(length: int, cell_text: str) -> CellRow
      :staticmethod:



.. py:function:: backend_elide_mode_to_aqt_elide_mode(elide_mode: anki.collection.BrowserRow.Cell.TextElideMode.V) -> aqt.Qt.TextElideMode

.. py:function:: backend_color_to_aqt_color(color: anki.collection.BrowserRow.Color.V) -> dict[str, str] | None

.. py:function:: adjusted_bg_color(color: dict[str, str] | None) -> dict[str, str] | None

