Skip to content

Commit

Permalink
Fix #7218: DT Customers TS example updated (#7223)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Sep 19, 2024
1 parent 504afcc commit 7d497f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/doc/datatable/samples/customersdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,10 @@ import { InputText } from 'primereact/inputtext';
import { IconField } from 'primereact/iconfield';
import { InputIcon } from 'primereact/inputicon';
import { Dropdown, DropdownChangeEvent } from 'primereact/dropdown';
import { InputNumber, InputNumberValueChangeEvent } from 'primereact/inputnumber';
import { InputNumber } 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';
Expand Down Expand Up @@ -616,15 +616,15 @@ export default function CustomersDemo() {
};
const dateFilterTemplate = (options: ColumnFilterElementTemplateOptions) => {
return <Calendar value={options.value} onChange={(e: CalendarChangeEvent) => options.filterCallback(e.value, options.index)} dateFormat="mm/dd/yy" placeholder="mm/dd/yyyy" mask="99/99/9999" />;
return <Calendar value={options.value} onChange={(e) => options.filterCallback(e.value, options.index)} dateFormat="mm/dd/yy" placeholder="mm/dd/yyyy" mask="99/99/9999" />;
};
const balanceBodyTemplate = (rowData: Customer) => {
return formatCurrency(rowData.balance);
};
const balanceFilterTemplate = (options: ColumnFilterElementTemplateOptions) => {
return <InputNumber value={options.value} onChange={(e: InputNumberValueChangeEvent) => options.filterCallback(e.value, options.index)} mode="currency" currency="USD" locale="en-US" />;
return <InputNumber value={options.value} onChange={(e) => options.filterCallback(e.value, options.index)} mode="currency" currency="USD" locale="en-US" />;
};
const statusBodyTemplate = (rowData: Customer) => {
Expand Down

0 comments on commit 7d497f5

Please sign in to comment.