applyDateFilter()
Creates the ChangeDateFilterSelectionOfAnyType command for an absolute date filter with granularity.
export declare function applyDateFilter(filter: IAbsoluteGranularityDateFilter, correlationId?: string): ChangeDateFilterSelectionOfAnyType;
Parameters
Parameter | Type | Description |
|---|---|---|
filter | date filter to apply | |
correlationId | string | (Optional) specify correlation id to use for this command. this will be included in all events that will be emitted during the command processing |
Returns
ChangeDateFilterSelectionOfAnyType
Remarks
Dispatching this command will result in change of dashboard’s common date filter, or error in case of invalid update (e.g. hidden date filter option by dateFilterConfig). The filter must not have a date dataset, the dashboard does not support absolute date filters with granularity for a date dataset yet.
See ChangeDateFilterSelectionOfAnyType for a more complete description of the different parameters