Web card

Adds a card to a page in the application.

Cards let you present related information and controls in a collapsible container in the application interface.

Properties

key
Type
Max length
128
Required
Yes
Pattern
^[a-zA-Z0-9-]+$
Description

A key to identify this module. This key must be unique across all modules defined by your add-on.


location
Type
Max length
128
Required
Yes
Allowed values
  • org.bitbucket.pullrequest
  • org.bitbucket.source
  • org.bitbucket.source.directory
  • org.bitbucket.source.file
Description

Location in the application interface.


name
Type
Required
Yes
Description

Represents a string that can be resolved via a localization properties file. You can use the same i18n Property key and value in multiple places if you like, but identical keys must have identical values.


url
Type
Max length
2048
Format
uri-template
Required
Yes

conditions
Type
Description

Conditions control whether or not a module will be displayed based on the current context. See Conditions for more details


icon
Type
Description

This is not fully supported yet. If specified, this will take precedence over any aui icon classes specified via params.auiIcon.

Properties

url
Type
Format
uri
Required
Yes
height
Type
width
Type

params
Type

tooltip
Type
Description

Represents a string that can be resolved via a localization properties file. You can use the same i18n Property key and value in multiple places if you like, but identical keys must have identical values.


weight
Type
Description

Determines the order in which the web item appears in the menu or list. The "lightest" weight (i.e., lowest number) appears first, rising relative to other items, while the "heaviest" weights sink to the bottom of the menu or list.


Rate this page: