0.0.6 • Published 6 years ago

generic-elements v0.0.6

Weekly downloads
20
License
-
Repository
github
Last release
6 years ago

About

A generic component library for Angular 6 with Angular Material that introduces generic components that communicate via inputs and outputs.

Getting started

Install through npm:

npm install --save generic-elements

Then include the elements module in your app.module.ts:

import { GenericElementsModule } from 'generic-elements';

Content

Current elements:

  • Generic Table

Future elements:

  • Generic advanced search

Examples

Generic table

You can use the generic table either by passing the path to the API from where the component will get an array o items di display, or by passing the data yourseld. The api has three inputs:

  • serviceApiPath
  • inputData
  • tableColumns

Example:

<generic-table
[serviceApiName]="'http://your-api/arrayOfObjects'"
[tableColumns]="['propOneOfObject', 'propTwoOfObject', 'propThreeOfObject']">
</generic-table>

Licence

MIT

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago