ngx-anomali-filemanager
v2.0.0
Published
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 16.2.0.
Downloads
15
Readme
FileManager
This library was generated with Angular CLI version 16.2.0.
Code scaffolding
Run ng generate component component-name --project file-manager
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project file-manager
.
Note: Don't forget to add
--project file-manager
or else it will be added to the default project in yourangular.json
file.
Build
Run ng build file-manager
to build the project. The build artifacts will be stored in the dist/
directory.
Publishing
After building your library with ng build file-manager
, go to the dist folder cd dist/file-manager
and run npm publish
.
Running unit tests
Run ng test file-manager
to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.
Directive
Input
maxWidth: number;
maxSizeMB: number;
isSelectMultiple: boolean;
isShowSelectFiles: boolean;
prefix: string;
suffix: string;
path: string;
id: string;
Output
selectFiles: EventEmitter<IFile[]>;
Model
interface FileManagerConfig {
apiUrl: string;
apiGetFile: string;
apiPostFile: string;
apiDeleteFile: string;
}
interface IFile {
url: string;
id: string;
fileName: string;
fileExtension: string;
dateCreate: string;
fileSize: string;
}
interface IPostFile {
fileName: string;
fileEncoded: string;
}
Constants
FILE_MANAGER_CONFIG: string;
Release Notes
ver 0.1.3
Add pagination
ver 0.1.2
Add missing css
ver 0.1.1
Handle slugify filename
ver 0.1.0
Rebuild project to ensure optimum support with latest packages
ver 0.0.3
Update style and allow uploads for any file type
ver 0.0.2
Setup id for file uploader
ver 0.0.1
Initial uploads