Application Delivery Management

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

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

示例。您可以使用 label 属性为参数添加描述性名称,并使用描述属性为此参数添加工具提示。

name: ip
label: Virtual Server IP Address
description: IP address of the virtual server that represents the load balanced application.
type: ipaddress
required: true
<!--NeedCopy-->

示例。如果您有类型对象的参数,则可以使用 gui 属性定义布局。在此示例中,布局是字段以两列显示的可折叠对象。

name: svcg-advanced
label: Advanced Application Server Settings
type: object
required: false
gui:
 collapse_pane: true
 columns: 2
<!--NeedCopy-->

示例。您还可以将对象类型参数[] (对象列表)的摘要视图显示为一个表格,其内部参数表示这些列。要在摘要视图中包含或排除内部参数,可以按如下方式使用 gui 部分中的摘y_display 属性:

name: settings
label: Settings
type: object[]
parameters:
  -
    name: name
    label: Name
    description: Name of this setting
    type: string
    gui:
      summary_display: true
<!--NeedCopy-->

示例。Citrix ADM 上的某些样书仅用作其他样书的构建块。而且,您可能不希望用户直接从这些样本创建配置。因为这些样本将用作其他样本的一部分。将样本标记为专用,以确保样本未直接用于在 Citrix ADM GUI 中创建配置。

name: basic-lb-config
description: This stylebook defines a simple load balancing configuration.
display-name: Load Balancing Configuration
namespace: com.example.stylebooks
private: true
schema-version: "1.0"
version: "0.1"
<!--NeedCopy-->
在自定义样本中使用 GUI 属性