interface TextConditionalFormatProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.QuickSight.CfnAnalysis.TextConditionalFormatProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsquicksight#CfnAnalysis_TextConditionalFormatProperty |
Java | software.amazon.awscdk.services.quicksight.CfnAnalysis.TextConditionalFormatProperty |
Python | aws_cdk.aws_quicksight.CfnAnalysis.TextConditionalFormatProperty |
TypeScript | aws-cdk-lib » aws_quicksight » CfnAnalysis » TextConditionalFormatProperty |
The conditional formatting for the text.
Example
// 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 textConditionalFormatProperty: quicksight.CfnAnalysis.TextConditionalFormatProperty = {
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',
},
},
};
Properties
Name | Type | Description |
---|---|---|
background | IResolvable | Conditional | The conditional formatting for the text background color. |
icon? | IResolvable | Conditional | The conditional formatting for the icon. |
text | IResolvable | Conditional | The conditional formatting for the text color. |
backgroundColor?
Type:
IResolvable
|
Conditional
(optional)
The conditional formatting for the text background color.
icon?
Type:
IResolvable
|
Conditional
(optional)
The conditional formatting for the icon.
textColor?
Type:
IResolvable
|
Conditional
(optional)
The conditional formatting for the text color.