Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions Angular/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
<div class="default-style">
<dx-button [text]="buttonText" (onClick)="onClick($event)"></dx-button>
<div class="demo-container">
<div class="file-uploader-block">
<dx-file-uploader
id="file-uploader"
[multiple]="true"
uploadMode="useButtons"
[allowCanceling]="true"
accept="image/*"
labelText="Drop Images Here to Upload..."
[maxFileSize]="32000000"
dropZone=".file-uploader-block"
></dx-file-uploader>
</div>
</div>
4 changes: 0 additions & 4 deletions Angular/src/app/app.component.scss
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
.default-style {
margin: 50px;
width: 90vw;
}
4 changes: 2 additions & 2 deletions Angular/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { DxButtonModule } from 'devextreme-angular/ui/button';
import { DxFileUploaderModule } from 'devextreme-angular/ui/file-uploader';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';

Expand All @@ -11,7 +11,7 @@ import { AppComponent } from './app.component';
imports: [
BrowserModule,
AppRoutingModule,
DxButtonModule,
DxFileUploaderModule,
],
providers: [],
bootstrap: [AppComponent],
Expand Down
2 changes: 1 addition & 1 deletion Angular/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
</head>
<body>
<body class="dx-viewport">
<app-root></app-root>
</body>
</html>
31 changes: 30 additions & 1 deletion Angular/src/styles.scss
Original file line number Diff line number Diff line change
@@ -1 +1,30 @@
/* You can add global styles to this file, and also import other style files */
.demo-container {
margin: 50px;
height: 50vh;
}

.file-uploader-block {
width: 100%;
height: 100%;
background-color: #f5f5f5;
border-radius: 16px;
}

#file-uploader {
height: 100%;
}

.dx-fileuploader-input-wrapper {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
}

.dx-fileuploader-input-container {
text-align: center;
}

#file-uploader .dx-fileuploader-wrapper {
overflow-y: auto;
}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<!-- default badges list -->
![](https://img.shields.io/endpoint?url=https://codecentral.devexpress.com/api/v1/VersionRange/1023568308/25.1.2%2B)
[![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/T1300606)
[![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183)
[![](https://img.shields.io/badge/💬_Leave_Feedback-feecdd?style=flat-square)](#does-this-example-address-your-development-requirementsobjectives)
Expand Down
Loading