From 9ce4417824284d6fba1691b7bf892a16619c6cb9 Mon Sep 17 00:00:00 2001 From: Melloware Date: Wed, 18 Sep 2024 07:58:40 -0400 Subject: [PATCH] Fix #7208: Fix Advanced Filter TS Demo (#7213) --- components/doc/datatable/filter/advanceddoc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/doc/datatable/filter/advanceddoc.js b/components/doc/datatable/filter/advanceddoc.js index 608fc4f7a1..dccd2b14cd 100644 --- a/components/doc/datatable/filter/advanceddoc.js +++ b/components/doc/datatable/filter/advanceddoc.js @@ -510,7 +510,7 @@ import React, { useState, useEffect } from 'react'; import { classNames } from 'primereact/utils'; import { FilterMatchMode, FilterOperator } from 'primereact/api'; import { DataTable, DataTableFilterMeta } from 'primereact/datatable'; -import { Column, ColumnFilterElementTemplateOptions } from 'primereact/column'; +import { Column, ColumnFilterApplyTemplateOptions, ColumnFilterClearTemplateOptions, ColumnFilterElementTemplateOptions } from 'primereact/column'; import { InputText } from 'primereact/inputtext'; import { IconField } from 'primereact/iconfield'; import { InputIcon } from 'primereact/inputicon'; @@ -518,7 +518,7 @@ import { Dropdown, DropdownChangeEvent } from 'primereact/dropdown'; import { InputNumber, InputNumberChangeEvent } from 'primereact/inputnumber'; import { Button } from 'primereact/button'; import { ProgressBar } from 'primereact/progressbar'; -import { Calendar, CalendarChangeEvent } from 'primereact/calendar'; +import { Calendar } from 'primereact/calendar'; import { MultiSelect, MultiSelectChangeEvent } from 'primereact/multiselect'; import { Slider, SliderChangeEvent } from 'primereact/slider'; import { Tag } from 'primereact/tag'; @@ -724,7 +724,7 @@ export default function AdvancedFilterDemo() { }; const dateFilterTemplate = (options: ColumnFilterElementTemplateOptions) => { - return options.filterCallback(e.value, options.index)} dateFormat="mm/dd/yy" placeholder="mm/dd/yyyy" mask="99/99/9999" />; + return options.filterCallback(e.value, options.index)} dateFormat="mm/dd/yy" placeholder="mm/dd/yyyy" mask="99/99/9999" />; }; const balanceBodyTemplate = (rowData: Customer) => {