Add additional expression information for page layout visibility conditions

This commit is contained in:
Jože Fortun
2023-09-18 15:17:23 +02:00
parent c997655b96
commit d2cc2c8dc3
2 changed files with 15 additions and 0 deletions
@@ -483,6 +483,20 @@
:placeholder="$t('page-layout.condition.placeholder')"
/>
</b-input-group>
<b-form-text>
<i18next
path="page-layout.condition.description"
tag="label"
>
<code>"record.values.fieldName"</code>
<code>"user.(userID/email...)"</code>
<code>"screen.(width/height)"</code>
<code>"isView/isCreate/isEdit"</code>
<code>"user.userID == record.values.createdBy"</code>
<code>"screen.width &lt; 1024"</code>
</i18next>
</b-form-text>
</b-form-group>
<b-form-group
@@ -13,6 +13,7 @@ page-layout:
condition:
label: Condition
placeholder: When will the layout be shown
description: "You can use {{0}}, {{1}}, {{2}}, {{3}} inside the expression, for example: {{4}} or {{5}}"
roles:
label: Roles
placeholder: Pick roles that the layout will be shown to