# FilterRelativeDateTimeControlProperty

A control from a date filter that is used to specify the relative date.

- Source: Generated at build time
- Type last changed: v2.161.0 · 4 Oct 2024

## 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 filterRelativeDateTimeControlProperty: quicksight.CfnAnalysis.FilterRelativeDateTimeControlProperty = {
  filterControlId: 'filterControlId',
  sourceFilterId: 'sourceFilterId',
  title: 'title',

  // the properties below are optional
  commitMode: 'commitMode',
  displayOptions: {
    dateTimeFormat: 'dateTimeFormat',
    infoIconLabelOptions: {
      infoIconText: 'infoIconText',
      visibility: 'visibility',
    },
    titleOptions: {
      customLabel: 'customLabel',
      fontConfiguration: {
        fontColor: 'fontColor',
        fontDecoration: 'fontDecoration',
        fontFamily: 'fontFamily',
        fontSize: {
          absolute: 'absolute',
          relative: 'relative',
        },
        fontStyle: 'fontStyle',
        fontWeight: {
          name: 'name',
        },
      },
      visibility: 'visibility',
    },
  },
};
```

## Properties

- `commitMode`: string — The visibility configuration of the Apply button on a `FilterRelativeDateTimeControl` .

- `displayOptions`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnAnalysis.RelativeDateTimeControlDisplayOptionsProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnAnalysis.RelativeDateTimeControlDisplayOptionsProperty.html) — The display options of a control.

- `filterControlId`: string (required) — The ID of the `FilterTextAreaControl` .

- `sourceFilterId`: string (required) — The source filter ID of the `FilterTextAreaControl` .

- `title`: string (required) — The title of the `FilterTextAreaControl` .
