You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, you're able to define your form control element (incl. validation).
108
-
109
-
```ts
110
-
@Component({
111
-
selector: "form-control-dropzone",
112
106
template: `
113
107
<mat-form-field>
114
108
<ngx-mat-dropzone>
@@ -164,7 +158,7 @@ because people are way too opinionated about their styling and behaviour.
164
158
</mat-form-field>
165
159
```
166
160
167
-
```js
161
+
```ts
168
162
exportclassAppComponent {
169
163
fileCtrl =newFormControl();
170
164
@@ -212,32 +206,18 @@ However, you might want to apply your own custom styling (or library).
212
206
213
207
In this case, you're able to build upon the dropzone CDK. See the [Material dropzone](/projects/material/src/lib/mat-dropzone/mat-dropzone.component.ts) as an example.
214
208
215
-
The basic setup requires you to import the `DropzoneCdkModule` into your app.
0 commit comments