dex-ng-file-explorer
v1.3.9
Published
Dexninja angular file explorer built on top of [email protected]
Downloads
417
Maintainers
Readme
dex-ng-file-explorer
Lightweight and easy-to-use Angular File Explorer module. This is a front-end implementation only. There are no services at this point.
How to use
- Install package
npm i dex-ng-file-explorer
- Implement
IDataService
provider interface
import { IDataService } from 'dex-ng-file-explorer';
export class MyDataService implements IDataService<MyNodeType> {
...
}
- Add
NgxExplorerModule
and data provider toNgModule
import { NgxExplorerModule, DataService } from 'dex-ng-file-explorer';
@NgModule({
imports: [
...
NgxExplorerModule
],
providers: [
{ provide: DataService, useClass: MyDataService }
]
})
export class AppModule { }
- Add
<nxe-explorer></nxe-explorer>
to the template - Add css import
@import '~dex-ng-file-explorer/src/assets/icons/css/nxe.css'