From 6c37885c3dffef523630b3dba965190318f70fc8 Mon Sep 17 00:00:00 2001 From: Jeff Ohrstrom Date: Mon, 25 Nov 2024 11:13:46 -0500 Subject: [PATCH] add docs on new data-hide behaviour (#1025) --- .../app-development/interactive/dynamic-form-widgets.rst | 5 +++++ source/release-notes/v4.0-release-notes.rst | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/source/how-tos/app-development/interactive/dynamic-form-widgets.rst b/source/how-tos/app-development/interactive/dynamic-form-widgets.rst index b797f849..3b9efbae 100644 --- a/source/how-tos/app-development/interactive/dynamic-form-widgets.rst +++ b/source/how-tos/app-development/interactive/dynamic-form-widgets.rst @@ -90,6 +90,11 @@ instructs the webpage to hide the ``cuda_version`` when the ``standard`` By forcing a value after hiding it you can ensure that the correct values are being passed to the server. +.. tip:: + + In addition to setting the value to ``true`` to hide the form item, in 4.0 + you can also specify ``false`` to show the form item. + .. code-block:: yaml :emphasize-lines: 7 diff --git a/source/release-notes/v4.0-release-notes.rst b/source/release-notes/v4.0-release-notes.rst index e140dcfd..ecdfe5b2 100644 --- a/source/release-notes/v4.0-release-notes.rst +++ b/source/release-notes/v4.0-release-notes.rst @@ -17,6 +17,7 @@ New Features - `noVNC quality and compression defaults`_ - `Batch connect sessions poll delay`_ - `System Status application`_ +- `data-hide directives now respond to false`_ - `User mapping now accepts UIDs`_ - `Interactive apps can have a text header`_ - `Remove runtime dependency on SCL`_ @@ -332,6 +333,14 @@ for more details. Visit :ref:`disabling_applications` to disable this application. +data-hide directives now respond to false +......................................... + +``data-hide`` directives now respond to both ``true`` to hide +the form item or ``false`` to show the form item. + +Responding to ``false`` is new in 4.0. + User mapping now accepts UIDs .............................