@evley/importer
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@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()

| Input | Type | Description | | ---------------- | ------- | -------------------------- | --------------------------------------------------------------------------------------------------------- | | [name] | string | Name will be used as the local storage name only. Defaults to "evley-import" | [inputMethods] | ImportMethod[] | Specify supported import methods from the ImportMethod enum. Defaults to all import methods | (importClosed) | boolean | Output 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>

/@evley/importer/

    Package Sidebar

    Install

    npm i @evley/importer

    Weekly Downloads

    3

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    228 kB

    Total Files

    44

    Last publish

    Collaborators

    • tinybigideas