-
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.
- Loading branch information
Showing
57 changed files
with
1,246 additions
and
151 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
38 changes: 38 additions & 0 deletions
38
apps/demos/Demos/Chat/Customization/Angular/app/app.component.css
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 @@ | ||
.demo-container { | ||
min-width: 720px; | ||
display: flex; | ||
gap: 20px; | ||
} | ||
|
||
::ng-deep .chat-container { | ||
display: flex; | ||
flex-grow: 1; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
::ng-deep .options { | ||
padding: 20px; | ||
display: flex; | ||
flex-direction: column; | ||
min-width: 280px; | ||
background-color: rgba(191, 191, 191, 0.15); | ||
gap: 16px; | ||
} | ||
|
||
::ng-deep .dx-chat { | ||
max-width: 480px; | ||
} | ||
|
||
::ng-deep .caption { | ||
font-size: var(--dx-font-size-sm); | ||
font-weight: 500; | ||
} | ||
|
||
::ng-deep .option-separator { | ||
border-bottom: 1px solid var(--dx-color-border); | ||
} | ||
|
||
::ng-deep .dx-avatar { | ||
border: 1px solid var(--dx-color-border); | ||
} |
79 changes: 79 additions & 0 deletions
79
apps/demos/Demos/Chat/Customization/Angular/app/app.component.html
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,79 @@ | ||
<div class="demo-container"> | ||
<div class="chat-container"> | ||
<dx-chat | ||
#chat | ||
[height]="710" | ||
[user]="currentUser" | ||
[items]="messages$ | async" | ||
[showAvatar]="true" | ||
[showUserName]="true" | ||
[showDayHeaders]="true" | ||
[showMessageTimestamp]="true" | ||
[dayHeaderFormat]="dayHeaderFormats[0]" | ||
[messageTimestampFormat]="messageTimestampFormats[0]" | ||
[disabled]="false" | ||
(onMessageEntered)="onMessageEntered($event)" | ||
> | ||
</dx-chat> | ||
</div> | ||
|
||
<div class="options"> | ||
<div class="caption">Options</div> | ||
|
||
<div class="option"> | ||
<dx-check-box text="Avatar" [(value)]="chat.showAvatar"></dx-check-box> | ||
</div> | ||
|
||
<div class="option"> | ||
<dx-check-box | ||
text="User Name" | ||
[(value)]="chat.showUserName" | ||
></dx-check-box> | ||
</div> | ||
|
||
<div class="option-separator"></div> | ||
|
||
<div class="option"> | ||
<dx-check-box | ||
text="Day Headers" | ||
[(value)]="chat.showDayHeaders" | ||
></dx-check-box> | ||
</div> | ||
|
||
<div class="option"> | ||
<span>Day Header Format:</span> | ||
<dx-select-box | ||
[items]="dayHeaderFormats" | ||
[(value)]="chat.dayHeaderFormat" | ||
[inputAttr]="dayHeaderLabel" | ||
></dx-select-box> | ||
</div> | ||
|
||
<div class="option-separator"></div> | ||
|
||
<div class="option"> | ||
<dx-check-box | ||
text="Message Timestamp" | ||
[(value)]="chat.showMessageTimestamp" | ||
></dx-check-box> | ||
</div> | ||
|
||
<div class="option"> | ||
<span>Message Timestamp Format:</span> | ||
<dx-select-box | ||
[items]="messageTimestampFormats" | ||
[(value)]="chat.messageTimestampFormat" | ||
[inputAttr]="messageTimestampLabel" | ||
></dx-select-box> | ||
</div> | ||
|
||
<div class="option-separator"></div> | ||
|
||
<div class="option"> | ||
<dx-check-box | ||
text="Disable Chat" | ||
[(value)]="chat.disabled" | ||
></dx-check-box> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.