.. _modal-window: Modal window ############ Sometimes the representation of the data requires a wider view than the central column. It particularly happens when displaying tables. Nefertiti adds a expand button at the top right side of each table that when clicked opens a modal window with the table in a wider view. The modal window is active for two types of elements: **tables** and **mermaid diagrams**. Large tables ************ The documentation of Nefertiti for Sphinx comes with two examples of tables with a width wider than the central column: * The table :ref:`of the ISO 639 language codes ` * An extract of the :ref:`World's most threatened species ` .. cs_figure:: img/modal-table.png :width: 85% :align: center :class: border-radius-1 At the top right side of the table, clicking on the *expand* icon opens the table in a modal window. Mermaid diagrams **************** Mermaid diagrams may open using the modal window provided by `sphinxcontrib-mermaid `_. Once it has been installed, adding the following settings to your ``conf.py`` file enables the modal window: .. code-block:: python mermaid_fullscreen = True # Enable/disable globally (default: True) mermaid_fullscreen_button = "⛶" # Customize button icon (default: ⛶) Here is an example: .. mermaid:: :zoom: --- title: Example of Mindmap config: theme: base --- mindmap root((mindmap)) Origins Long history ::icon(fa fa-book) Popularisation British popular psychology author Tony Buzan Research On effectiveness
and features On Automatic creation Uses Creative techniques Strategic planning Argument mapping Tools Pen and paper Mermaid