From 0e40bb4d0ff10047315055512228f6d3b123b3a1 Mon Sep 17 00:00:00 2001 From: melloware Date: Wed, 18 Sep 2024 07:56:13 -0400 Subject: [PATCH] Fix #7208: Fix Advanced Filter TS Demo --- 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) => {