-
Notifications
You must be signed in to change notification settings - Fork 600
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '24_2' of github.com:DevExpress/DevExtreme into T1265009…
…_24_2
- Loading branch information
Showing
155 changed files
with
11,090 additions
and
6,526 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Use the following properties to customize the Chat component: | ||
|
||
- To display/hide Chat UI elements: | ||
- [showAvatar](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#showAvatar) | ||
- [showUserName](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#showUserName) | ||
- [showDayHeaders](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#showDayHeaders) | ||
- [showMessageTimestamp](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#showMessageTimestamp) | ||
|
||
- To modify date/time formats: | ||
- [dayHeaderFormat](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#dayHeaderFormat) | ||
- [messageTimestampFormat](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#messageTimestampFormat) | ||
|
||
- To deactivate Chat, use the [disabled](/Documentation/ApiReference/UI_Components/dxChat/Configuration/#disabled) property. | ||
<!--split--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
apps/demos/Demos/Pagination/Overview/React/EmployeeCard.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react'; | ||
import { Employee } from './data'; | ||
|
||
interface EmployeeCardProps { | ||
employee: Employee; | ||
} | ||
|
||
const EmployeeCard = ({ employee }: EmployeeCardProps) => { | ||
return ( | ||
<div className="employees__card"> | ||
<div className="employees__img-wrapper"> | ||
<img | ||
className="employees__img" | ||
src={employee.Picture} | ||
alt={employee.FullName} | ||
/> | ||
</div> | ||
<div className="employees__info"> | ||
<div className="employees__info-row"> | ||
<span className="employees__info-label">Full Name:</span> | ||
<span className="employees__info-value">{employee.FullName}</span> | ||
</div> | ||
|
||
<div className="employees__info-row"> | ||
<span className="employees__info-label">Position:</span> | ||
<span className="employees__info-value">{employee.Title}</span> | ||
</div> | ||
|
||
<div className="employees__info-row"> | ||
<span className="employees__info-label">Phone:</span> | ||
<span className="employees__info-value">{employee.MobilePhone}</span> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default EmployeeCard; |
27 changes: 27 additions & 0 deletions
27
apps/demos/Demos/Pagination/Overview/React/EmployeesGallery.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
import EmployeeCard from './EmployeeCard.tsx'; | ||
import { Employee } from './data'; | ||
|
||
interface EmployeeGalleryProps { | ||
employees: Employee[]; | ||
pageSize: number; | ||
pageIndex: number; | ||
} | ||
|
||
const EmployeeGallery = ({ employees, pageSize, pageIndex }: EmployeeGalleryProps) => { | ||
const cardsNumber = pageSize === 4 ? 'employees--forth' : 'employees--six'; | ||
const pageEmployees = employees.slice((pageIndex - 1) * pageSize, pageIndex * pageSize); | ||
|
||
return ( | ||
<div className={`employees ${cardsNumber}`}> | ||
{pageEmployees.map((employee) => ( | ||
<EmployeeCard | ||
key={employee.ID} | ||
employee={employee} | ||
/> | ||
))} | ||
</div> | ||
); | ||
}; | ||
|
||
export default EmployeeGallery; |
Oops, something went wrong.