0.9.1 • Published 5 years ago

ng2-bl-fileinput v0.9.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
5 years ago

Angular 2 fileinput component

npm version

A native fileinput component for angular 2.

See the ng2-bl-fileinput page for examples.

Getting started

Install

For npm users:

npm install --save ng2-bl-fileinput

For yarn users:

yarn add ng2-bl-fileinput

Configuration

Angular cli

After installation, no additional configuration is needed. Import the BlFileinputModule and define it as one of the imports of your application module:

import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {BlFileinputModule} from 'ng2-bl-fileinput';

import {AppComponent} from './app.component';

@NgModule({
    declarations: [
        AppComponent
    ],
    imports: [
        BrowserModule,
        BlFileinputModule
    ],
    bootstrap: [
        AppComponent
    ]
})
export class AppModule {}

Input properties

NameTypeDefaultDescription
acceptArray<string>|stringnullList of allowed file types (MIME-Type or file extension) as array or comma separated as a string.
buttonOnlybooleanfalseIf set to true, only the fil selection button is shown.
buttonTextstringchoose file(s)Only applies to single select. If set to true, a clickable clear selection cross is shown.
iconstring""CSS Class(es) for a Icon that is shown on the button.
multiplebooleanfalseIf set to true, the fileinput component is multi-select, otherwise single select.
placeholderstring""Placeholder text that is shown if no options are selected.

Output events

NameValueDescription
fileChangedFile|Array<File>The selected file(s).
0.9.1

5 years ago

0.9.0

5 years ago

0.8.1

7 years ago

0.8.0

7 years ago

0.7.0

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago