From 71b596d57d25bc2015b12350dc97976b60a86806 Mon Sep 17 00:00:00 2001 From: "azure-pipelines[bot]" <36771401+azure-pipelines[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 11:36:22 -0500 Subject: [PATCH] Adding changes from build igniteui-xplat-examples-output+PRs_2023.10.30.3 (#392) Co-authored-by: tfsbuild --- samples/grids/grid/action-strip/src/index.tsx | 3 +- .../grid/binding-composite-data/src/index.tsx | 108 ++++++++---------- .../grid/binding-nested-data-1/src/index.tsx | 30 +++-- .../src/index.tsx | 2 +- 4 files changed, 65 insertions(+), 78 deletions(-) diff --git a/samples/grids/grid/action-strip/src/index.tsx b/samples/grids/grid/action-strip/src/index.tsx index 0c3ceb9c7d..9eeff1159c 100644 --- a/samples/grids/grid/action-strip/src/index.tsx +++ b/samples/grids/grid/action-strip/src/index.tsx @@ -69,7 +69,8 @@ export default class Sample extends React.Component { + deleteRow="true" + addRow="true"> m.register()); @@ -106,6 +109,7 @@ export default class Sample extends React.Component { <>
Name: {cell.row.data.ContactName} +
Title: {cell.row.data.ContactTitle}
Company: {cell.row.data.CompanyName} @@ -124,32 +128,25 @@ export default class Sample extends React.Component { return ( <> -
-
- Name: - - { - cell.row.data.ContactName = e.target.value; - this.forceUpdate(); - } - } value={cell.row.data.ContactName}> -
-
- Title: - - { - cell.row.data.ContactTitle = e.target.value; - this.forceUpdate(); - }} value={cell.row.data.ContactTitle}> -
-
- Company: - - { - cell.row.data.CompanyName = e.target.value; - this.forceUpdate(); - }} value={cell.row.data.CompanyName}> -
+
+ + { + cell.row.data.ContactName = e.detail; + this.forceUpdate(); + } + } value={cell.row.data.ContactName}> + + { + cell.row.data.ContactTitle = e.detail; + this.forceUpdate(); + } + } value={cell.row.data.ContactTitle}> + + { + cell.row.data.CompanyName = e.detail; + this.forceUpdate(); + } + } value={cell.row.data.CompanyName}>
); @@ -190,38 +187,31 @@ export default class Sample extends React.Component { return ( <> -
-
- Country: - - { - cell.row.data.Country = e.target.value; - grid.markForCheck(); - }} value={cell.row.data.Country}> -
- City: - - { - cell.row.data.City = e.target.value; - grid.markForCheck(); - }} value={cell.row.data.City}> -
-
- Postal Code: - - { - cell.row.data.PostalCode = e.target.value; - grid.markForCheck(); - }} value={cell.row.data.PostalCode}> -
- Selected: - - { - cell.row.data.Phone = e.target.value; - grid.markForCheck(); - }} value={cell.row.data.Phone}> -
-
+
+ + { + cell.row.data.Country = e.detail; + this.forceUpdate(); + } + } value={cell.row.data.Country}> + + { + cell.row.data.City = e.detail; + this.forceUpdate(); + } + } value={cell.row.data.City}> + + { + cell.row.data.PostalCode = e.detail; + this.forceUpdate(); + } + } value={cell.row.data.PostalCode}> + + { + cell.row.data.Phone = e.detail; + this.forceUpdate(); + } + } value={cell.row.data.Phone}>
); diff --git a/samples/grids/grid/binding-nested-data-1/src/index.tsx b/samples/grids/grid/binding-nested-data-1/src/index.tsx index e81b1d8d9a..523fb5ae59 100644 --- a/samples/grids/grid/binding-nested-data-1/src/index.tsx +++ b/samples/grids/grid/binding-nested-data-1/src/index.tsx @@ -3,16 +3,18 @@ import ReactDOM from 'react-dom/client'; import './index.css'; import { IgrGridModule } from 'igniteui-react-grids'; +import { IgrInputModule } from 'igniteui-react'; import { IgrGrid, IgrColumn } from 'igniteui-react-grids'; import { EmployeesNestedDataItem, EmployeesNestedDataItem_EmployeesItem, EmployeesNestedData } from './EmployeesNestedData'; import { IgrCellTemplateContext } from 'igniteui-react-grids'; -import { IgrExpansionPanel } from 'igniteui-react'; +import { IgrExpansionPanel, IgrInput } from 'igniteui-react'; import 'igniteui-react-grids/grids/combined'; import 'igniteui-react-grids/grids/themes/light/bootstrap.css'; const mods: any[] = [ - IgrGridModule + IgrGridModule, + IgrInputModule ]; mods.forEach((m) => m.register()); @@ -59,7 +61,7 @@ export default class Sample extends React.Component { field="Employees" header="Employees" bodyTemplate={this.webGridNestedDataCellTemplate} - width="30%" + width="20%" name="column1"> { {value.Name}
-
- - { - props.dataContext.cell.value[0][e.target.id] = e.target.value; - grid.markForCheck(); - }} style={{textOverflow: "ellipsis"}} /> -
-
- - { - props.dataContext.cell.value[0][e.target.id] = e.target.value; - grid.markForCheck(); - }} style={{textOverflow: "ellipsis"}} /> -
+ { + props.dataContext.cell.value[0][s.label] = e.detail; + grid.markForCheck(); + }} style={{textOverflow: "ellipsis"}} /> + { + props.dataContext.cell.value[0][s.label] = e.detail; + grid.markForCheck(); + }} style={{textOverflow: "ellipsis"}} />
); diff --git a/samples/grids/grid/multi-column-headers-overview/src/index.tsx b/samples/grids/grid/multi-column-headers-overview/src/index.tsx index 1f095b5953..ceaba60da4 100644 --- a/samples/grids/grid/multi-column-headers-overview/src/index.tsx +++ b/samples/grids/grid/multi-column-headers-overview/src/index.tsx @@ -173,7 +173,7 @@ export default class Sample extends React.Component { } public webGridPinFirstGroupToggle(sender: any, args: IgrPropertyEditorPropertyDescriptionButtonClickEventArgs): void { - const grid: IgrGrid = this.grid + const grid: IgrGrid = this.grid; const firstColumnGroup = grid.getColumnByName("CompanyName").parent; firstColumnGroup.pinned = !firstColumnGroup.pinned; grid.markForCheck();