0.0.2 • Published 4 years ago

@evley/importer v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

@evley/importer

Simple importer to get data into an Evley.app.

Demo

Clone repo, install dependencies and serve locally.

npm install
ng serve

API

npm install @evley/importer

@Inputs()

InputTypeDescription
namestringName will be used as the local storage name only. Defaults to "evley-import"
inputMethodsImportMethod[]Specify supported import methods from the ImportMethod enum. Defaults to all import methods
(importClosed)booleanOutput method to capture when import is closed and if imported true or undefined

Usage

Import module:

import { ImporterModule } from '@evley/importer';

Set component properties:

public name = 'test';
public importMethods = [ImportMethod.CSV];

public onImportClosed(imported: boolean): void {
  // Handle imported
}

Add component to your html:

<evley-importer [name]="name" [importMethods]="importMethods" (importClosed)="onImportClosed($event)"></evley-importer>