样书配置

在自定义样书中使用 GUI 属性

您可以在样书的参数部分添加 GUI 属性,以使字段在 Citrix ADM 上显示时直观。

为参数添加带有工具提示的标签

您可以使用标签属性为参数添加描述性名称。使用描述属性为此参数添加工具提示。

示例

name:iplabel:Virtual Server IP Addressdescription:IP address of the virtual server that represents the load balanced application.type:ipaddressrequired:true

为参数设置一个可折叠的窗格

如果您有对象类型的参数,则可以使用gui属性定义布局。

Example-1:

name:svcg-advancedlabel:Advanced Application Server Settingstype:objectrequired:falsegui:collapse_pane:truecolumns:2

在此示例中,布局是字段以两列显示的可折叠对象。

您也可以将参数type: object[](对象列表)的摘要视图显示为表格,其中包含代表列的内部参数。要在摘要视图中包括或排除内部参数,可以按如下方式使用gui部分中的summary_display属性:

Example-2:

name:settingslabel:Settingstype:object[]parameters:-name:namelabel:Namedescription:Name of this settingtype:stringgui:summary_display:true

将用户选项设置为单选按钮

您可以使用 [layout] (/zh-cn/citrix-application-delivery-management-service/stylebooks/stylebooks-grammar/parameters-section.html #layout) 和 [允许的值] (/zh-cn/citrix-application-delivery-management-service/stylebooks/stylebooks-grammar/parameters-section.html #allowed-values) 属性将用户选项列为单选按钮。因此,当用户创建配置包时,参数值显示为单选按钮。

-name:block-by-category-actionlabel:Actiondescription:Set an action if the bot is detected.type:stringdefault:RESETgui:layout:radio允许的值:-NONE-DROP-REDIRECT-RESET-MITIGATION

在此示例中,用于设置操作的用户选项显示为单选按钮。而且,默认情况下,“重置”选项处于选中状态。

样书单选按钮

在自定义样书中使用 GUI 属性