Add additional expression information for page layout visibility conditions
This commit is contained in:
@@ -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 < 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
|
||||
|
||||
Reference in New Issue
Block a user