1.0.2 • Published 8 years ago

toschi-file-browser v1.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

I am the readme

major changes

setupa services and categories is now possible

setup categories

inject service and make setup

constructor(private browserService: BrowserService) {}
    
ngOnInit(): void {
    this.browserService.setCategories([
        {
            id: 'get-images',
            name: 'ima ges',
            api: '//some.url/to/a/service/',
            apiType: 'get',
            type: 'show'

        },
        {
            id: 'get-videos',
            name: 'vi deo ges',
            api: '//some.url/to/a/service/',
            apiType: 'get',
            type: 'show'

        },
        {
            id: 'post-image',
            name:  'image uploader',
            api: '//some.url/to/a/service/',
            apiType: 'post',
            type: 'uploader'


        }
    ]);
}

open dialog with settings

this.dialog.open(BrowserComponent,
{
   width: '75%',
   data: {
       singleSelection : true,
       allowDoubleClick: true
   }
});

edit theme.sass to manage colors of your theme