Enable/Disable Example ====================== Location: ``examples/webapp/enable/`` This example demonstrates the ```` attribute for conditionally showing or hiding inputs based on other input values. tool.xml (simplified) --------------------- .. code-block:: xml Drift-Diffusion input.choice(model) == "dd" off input.group(dd).boolean(recomb) 1e-6 input.choice(model) == "bte" K 300K no 7 input.choice(model) == "negf" eV 3.12eV input.(negf).(tbe):eV >= 3 ns 10ns Enable expression syntax ------------------------ .. list-table:: :header-rows: 1 :widths: 50 50 * - Expression - Meaning * - ``input.choice(model) == "dd"`` - Exact value match * - ``input.group(dd).boolean(recomb)`` - Boolean is true/on * - ``input.(negf).(tbe):eV >= 3`` - Numeric comparison with unit * - ``no`` - Always disabled/hidden Running ------- .. code-block:: bash rappture2web examples/webapp/enable/