Skip to content

Commit

Permalink
Added documentation for display option, so that form attributes show …
Browse files Browse the repository at this point in the history
…up in session card.
  • Loading branch information
james-s-willis committed Dec 10, 2024
1 parent 701c121 commit 2d58cf3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions source/enable-desktops/modify-form-attributes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -310,3 +310,21 @@ really have any meaning in the LinuxHost Adapter.
.. _ruby string: https://ruby-doc.org/core-2.2.0/String.html
.. _markdown: https://en.wikipedia.org/wiki/Markdown

Show Form Attribute in Session Card
-----------------------------------

If you want to show a form attribute in the session card, you can set the
``display`` option to ``true``. For example, to show the version of R selected
edit ``form.yml`` with:

.. code-block:: yaml
:emphasize-lines: 5-
attributes:
r_version:
display: true # Shows the choice in the card
widget: "select"
options:
- "4.2"
- "4.1"

0 comments on commit 2d58cf3

Please sign in to comment.