From bb39d6eac868a66b6b90bec7e5f1c2f4324d6302 Mon Sep 17 00:00:00 2001 From: Monviech <79600909+Monviech@users.noreply.github.com> Date: Fri, 5 Apr 2024 13:38:01 +0200 Subject: [PATCH] Update models_fieldtypes.rst - Add example to display multiple fields --- source/development/frontend/models_fieldtypes.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/development/frontend/models_fieldtypes.rst b/source/development/frontend/models_fieldtypes.rst index e6bcdb8..f04dc85 100644 --- a/source/development/frontend/models_fieldtypes.rst +++ b/source/development/frontend/models_fieldtypes.rst @@ -391,6 +391,21 @@ Define relations to other nodes in the model, such as to point the attribute :co +To display multiple fields, the :code:`display_format` is required. + +.. code-block:: xml + + + + + OPNsense.TrafficShaper.TrafficShaper + pipes.pipe + number,description + %s - %s + + + + .. csv-table:: ModelRelationField :header: "Parameter", "Options", "Purpose" :widths: 30, 20, 40