Skip to content
v2.273.0

TableConditionalFormattingProperty Struct ​

The conditional formatting for a PivotTableVisual .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const tableConditionalFormattingProperty: quicksight.CfnAnalysis.TableConditionalFormattingProperty = {
  conditionalFormattingOptions: [{
    cell: {
      fieldId: 'fieldId',

      // the properties below are optional
      textFormat: {
        backgroundColor: {
          gradient: {
            color: {
              stops: [{
                gradientOffset: 123,

                // the properties below are optional
                color: 'color',
                dataValue: 123,
              }],
            },
            expression: 'expression',
          },
          solid: {
            expression: 'expression',

            // the properties below are optional
            color: 'color',
          },
        },
        icon: {
          customCondition: {
            expression: 'expression',
            iconOptions: {
              icon: 'icon',
              unicodeIcon: 'unicodeIcon',
            },

            // the properties below are optional
            color: 'color',
            displayConfiguration: {
              iconDisplayOption: 'iconDisplayOption',
            },
          },
          iconSet: {
            expression: 'expression',

            // the properties below are optional
            iconSetType: 'iconSetType',
          },
        },
        textColor: {
          gradient: {
            color: {
              stops: [{
                gradientOffset: 123,

                // the properties below are optional
                color: 'color',
                dataValue: 123,
              }],
            },
            expression: 'expression',
          },
          solid: {
            expression: 'expression',

            // the properties below are optional
            color: 'color',
          },
        },
      },
    },
    row: {
      backgroundColor: {
        gradient: {
          color: {
            stops: [{
              gradientOffset: 123,

              // the properties below are optional
              color: 'color',
              dataValue: 123,
            }],
          },
          expression: 'expression',
        },
        solid: {
          expression: 'expression',

          // the properties below are optional
          color: 'color',
        },
      },
      textColor: {
        gradient: {
          color: {
            stops: [{
              gradientOffset: 123,

              // the properties below are optional
              color: 'color',
              dataValue: 123,
            }],
          },
          expression: 'expression',
        },
        solid: {
          expression: 'expression',

          // the properties below are optional
          color: 'color',
        },
      },
    },
  }],
};

Properties ​

conditionalFormattingOptionsIResolvable | IResolvable | CfnAnalysis.TableConditionalFormattingOptionProperty[]conditional_formatting_optionstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TableConditionalFormattingOptionProperty]]]conditionalFormattingOptionsIResolvableConditionalFormattingOptionsIResolvableConditionalFormattingOptionsinterface{}#
Conditional formatting options for a `PivotTableVisual` .