# DashboardWidgetVariationType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Conditional variation in the way how the widget is displayed. Variations may change colors or icons of the widget based on a condition.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
condition | property ExpressionType | [0,1] | Condition for the variation.
display | container DisplayType | [1,1] | Display properties to apply in case that the condition is true.

- ### Items

  - #### condition

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Condition for the variation. The variation will be active if the condition evaluates to true.

  - #### display

    Flags: RAM,runtime

    Multiplicity: [1,1]

    Display order:

    Display properties to apply in case that the condition is true. Those display properties specify only those presentation aspects that are different from the usual presenation. This is supposed to be merged with the primary display properties of the widget. E.g. if the variation only changes widget color, only color needs to be specified here. Icon and other styles are taken from the primary widget display properties.