Actions and Editors UI Mapping

Use actions and editors UI mapping.

The mapping between the attributes of editors or actions elements and elements of UI configuration file looks like it is described in the sections below.

Editors UI Tag Description (ZUL File)

<editors config='...' group='...' prefix='...' renderer='...'/>
  • config (required): defines the context element configuration for a given element
  • group (optional): filters which group gets displayed. If not provided, editors from all groups will be rendered.
  • prefix (optional): prefix for a property qualifier. If we set prefix to the currentObject in configuration, we could specify the property qualifier="pk", instead of property qualifier="currentObject.pk"
  • renderer (optional): CockpitComponentsRenderer responsible for rendering editors

Actions UI Tag Description (ZUL File)

<actions config='' group='...' prefix='' inputValue='...' renderer='...' viewMode='...' />
  • config (required): defines the context element configuration for a given element
  • group (optional): filters which group gets displayed. If not provided, actions from all groups will be rendered.
  • prefix (optional): prefix for action's property qualifier. If we set the prefix to currentObject in configuration, we could specify <y:action action-id="..." property=""/>, instead of <y:action action-id="" property="currentObject"/>.
  • inputValue (optional): sets the input value of the embedded editors
  • renderer (optional): CockpitComponentsRenderer responsible for rendering actions
  • viewMode (optional): possible values are:'iconOnly, iconAndText, textOnlyhidden

Actions Configuration Tag Description (cockpit-config.xml)

  • actions - root element
    • group (0+) / extended-group / split-group (0+, optional): filters which group is displayed. To know more, please see the Actions Grouping section of this document.
      • @qualifier - name of the group.
      • label - label of the group. It is possible to localize the label, by setting it and assigning a value to it in the i3-labels-*.properties file for a particular language
      • show-group-header- value by default: true in case of more than one of groups and false otherwise.
      • position - position of a group in a group collection.
      • action (0+)
        • @action-id - ID of the action (taken from the action's definition.xml)

        • @property - incoming property
        • @output-property - output which is set after the action was performed.
        • position- position of an action in an action group.
        • parameter
          • name- parameter name
          • value- parameter value

Editors Configuration Tag Description (cockpit-config.xml)

  • editors - root element
    • group (0+): define group
      • @qualifier: name of the group
      • @visible
      • @position
      • @merge-mode
      • label: label of the group
      • property (0+): property to be displayed
        • @qualifier
        • @visible
        • @type: type of property
        • @editor: specify which editor should be rendered
        • @merge-mode
        • label: label of the property
        • parameter (0+) - editor parameter
          • name - parameter name
          • value - parameter value