next-ucap-messenger/projects/ucap-webmessenger-ui-chat/src/lib/components/form.component.html

70 lines
1.5 KiB
HTML
Raw Normal View History

<div
2019-09-26 05:38:21 +00:00
class="container"
fxFlex="0 0 auto"
fxLayout="row"
fxLayoutAlign="center center"
>
2019-10-21 04:20:14 +00:00
<div class="add-option">
2019-10-29 09:17:48 +00:00
<button mat-icon-button class="material-icons" (click)="onClickFileInput()">
2019-10-24 07:28:19 +00:00
<mat-icon>attach_file</mat-icon>
</button>
2019-10-29 09:17:48 +00:00
<input
type="file"
#fileInput
style="display: none"
multiple
(change)="onChangeFileInput()"
/>
2019-10-24 07:28:19 +00:00
2019-11-20 09:04:24 +00:00
<button
mat-icon-button
class="material-icons"
(click)="onClickStickerSelector()"
>
2019-10-24 07:28:19 +00:00
<mat-icon>sentiment_satisfied_alt</mat-icon>
</button>
2019-11-20 09:04:24 +00:00
<!-- <button mat-icon-button class="material-icons">
2019-10-24 07:28:19 +00:00
<mat-icon>g_translate</mat-icon>
2019-11-20 09:04:24 +00:00
</button> -->
2019-10-21 04:20:14 +00:00
</div>
<form
#replyForm="ngForm"
2019-10-08 05:34:37 +00:00
(ngSubmit)="onSend($event)"
(keydown.enter)="onSend($event)"
fxFlex
fxLayout="row"
fxLayoutAlign="start center"
>
<mat-form-field
class="message-text"
fxFlex
floatLabel="never"
appearance="standard"
>
<textarea
matInput
#replyInput
placeholder="Type your message"
ngModel
name="message"
[matTextareaAutosize]="true"
2019-11-20 02:02:14 +00:00
[matAutosizeMinRows]="1"
[matAutosizeMaxRows]="20"
></textarea>
</mat-form-field>
<button
2019-11-19 02:41:54 +00:00
class="send-message-button bg-accent-darkest"
mat-icon-button
type="submit"
aria-label="Send message"
2019-10-08 05:34:37 +00:00
>
2019-10-29 10:06:25 +00:00
<i class="material-icons">
2019-10-21 04:20:14 +00:00
send
</i>
2019-10-08 05:34:37 +00:00
</button>
</form>
</div>